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 CS0509

'class2' : cannot inherit from sealed class 'class2'

A sealed class cannot act as a base class. Structs are sealed by default.

The following sample generates CS0509:

namespace x
{
   sealed public class clx   // class is sealed
   {
      public int i = 0;
   }
   public class cly : clx   // CS0509
   {
      public static int Main()
      {
         return 0;
      }
   }
}