vrijdag 16 november 2012

DataAnnotations

DataAnnotations

 

Dependency injection

Learned a lot the last few days about DI. Thanks to the '.NET Junkie'! . He promotes a dependency injection framework 'Simple injector'. See for your self.

dinsdag 7 februari 2012

Powerfull extension method C# 'In'

How easy can it be?

public static bool In(this string search, params string[] list){ return list.Contains(search); }

Now you can use

string a;

a = functionB();

if( a.In( "Yes", "No" ) )

{

}