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 CS0146

Circular base class definition between 'class1' and 'class2'

The inheritance list for a class includes a direct or indirect reference to itself. A class cannot inherit from itself.

The following sample generates CS0146:

namespace x {
   public interface a {
   }
   public class b : a, c {
      public void Main() {
      }
   }
   public class c : b {   // CS0146
   }
}