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.
what is the point of allowing invocation of extension methods on null objects? this
Share
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.