$100 bet regarding extension methods
An extension method is C# syntactic sugar that adds intellisense functionality to an encapsulated class.
Let's look at an example to see how this works:
public static class AlcoholicString{ public static bool IsDrunk(this string str) { return str.Contains("beer"); //what if i'm null? }}
This returns true for both AlcoholicString.IsDrunk("eldar wants a beer") and "eldar wants a beer".IsDrunk(). The latter is an example of an extension method.
Now the $100 question is does this work for:
string strTest = null;
strTest.IsDrunk(); //will this compile? will this run? what does it return?
Here's the MSDN article.