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
  • 79,431
  • 144
  • 301
  • 419

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,127
  • 22
  • 25