Why can't I create extension methods for static classes?

Posted by dotnetdev on Stack Overflow See other posts from Stack Overflow or by dotnetdev
Published on 2010-03-07T23:49:45Z Indexed on 2010/03/07 23:53 UTC
Read the original article Hit count: 111

Filed under:

When I try to create an extension method for the File class, I get an error telling me that I cannot do this because the class is static. However, I don't see why this stops the creation of an extension method, what implication is there?

Thanks

© Stack Overflow or respective owner

Related posts about c#