[Mono-list] mcs won't allow implementation of interfaces with static methods
Tue, 20 Aug 2002 10:08:29 +0200
This is incorrect and also note that that isn't part of the spec, it is
"informative text only".
> -----Original Message-----
> From: email@example.com
> [mailto:firstname.lastname@example.org] On Behalf Of Holger Arnold
> Sent: Monday, August 19, 2002 21:02
> To: email@example.com
> Subject: Re: [Mono-list] mcs won't allow implementation of
> interfaces with static methods
> > > static methods are not allowed on interfaces
> > This is not allowed in C# but actually allowed in metadata.
> > See Part II, 11 Semantics of Interfaces
> > "Interfaces may have static fields and methods, but they
> shall not have
> > instance fields or methods."
> But, rule 193 in Part II, 21.24 Method Table says:
> "Interfaces can only own
> virtual methods (not static or instance methods). So, if this
> method is owned
> by an interface, Flags.Static shall be clear [ERROR]".
> Mono-list maillist - Monofirstname.lastname@example.org