6

Possible Duplicate:
Why shouldn't C#(or .NET) allow us to put a static/shared method inside an interface?

Why we cannot define static method inside interface?

Community
  • 1
  • 1
user496949
  • 83,087
  • 147
  • 309
  • 426
  • Why do you need this? Its' limitation of C# language. Use extension method if required. – petro.sidlovskyy Jan 20 '11 at 10:50
  • As a non related side note, consider editing your display name (i.e. *add* such name) so you can start getting notifications with the `@` sign, right now there's no way to notify you when someone comment on your comment. – Shadow The GPT Wizard Jan 20 '11 at 10:51

1 Answers1

7

From the top search result in Google:

Because an interface is a "contract" or an agreement between the consumer (caller) and the provider (callee). An interface describes what and how the calle will provide functionality. There is no need for static members provided by a third party. Static members cannot be overridden by a provider so they do not belong in an interface.

Stefan Rusek

08 February 2006

Massif
  • 4,327
  • 23
  • 25