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 CS0549

'function' is a new virtual member in sealed class 'class'

A sealed class cannot be used as a base class, and a virtual method has to be implemented in a derived class, which is a contradiction.

The following sample generates CS0549:

sealed public class MyClass {
   virtual public void TestMethod() {   // CS0549
   }
// to resolve, remove virtual from method or sealed from class
   public static void Main() {
   }
}