Wednesday, September 12, 2012

Extension method must be static

Compilation Error:

Extension method must be static

Cause.

Extension methods (with this keyword in the first parameter), should be marked as static. Non static methods cannot be extension methods.

No comments:

Post a Comment