DataAnnotations |
A few URL's for dataannotations. I'll try to put some examples in soon.
http://dataannotationsextensions.org/
DataAnnotations |
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" ) )
}