NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Compiler Error CS0112

A static member 'function' cannot be marked as override, virtual or abstract

Any method declaration that uses the override, virtual, or abstract keyword cannot also use the static keyword.

The following sample generates CS0112:

namespace x 
{
   abstract public class clx 
   {
      public abstract void f();
   }

   public class cly : clx 
   {
      override public static void f()   // CS0112, remove static keyword
      {
      }
      public static int Main()
      {
         return 0;
      }
   }
}

See Also

Modifiers