This code won't compile: interface ITest { bool Foo(); }
public class Base : ITest { virtual bool ITest.Foo() { return true; } } The compiler objects to making ITest.Foo() virtual - it seems that for some reason C# won't allow an interface member to be virtual or abstract if it's been implemented explicitly (although if I don't implement it explicitly, the compiler is quite happy with the virtual/abstract modifier). Anyone know what the rationale for such a restriction would be? Offhand I can't see why doing that should be problematic. =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com