why allow extension methods on null objects?
what is the point of allowing invocation of extension methods on null objects? this is making me unnecessarily check for a null object in the extension method. AFAIK,i can't understand this? Please explain. Extension methods are syntactic sugar of the C# language, they get compiled to normal static method calls in ILCode. A static method doesn't know anything about the parameters at compile time. Simply put, why not? You can sometimes skip the test if the first method you call within the extension would also throw the correct error. You're essentially asking for the code to be different so