Possible Duplicate:
extension method requires class to be static
Why aren’t C# static class extension methods supported?
In .NET:
Why can’t static method in non-static class be an extension method?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Eric Lippert will probably weigh in with a really good answer on this one, but the gist of it will probably be:
This policy tends to force users to put all of their extension methods into a few specific classes that are designated for this purpose.