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 CS0110

The evaluation of the constant value for 'const declaration' involves a circular definition

The declaration of a const variable (a) cannot reference another const variable (b) that also references (a).

The following sample generates CS0110:

namespace x
{
   public class a
   {
      public static void Main()
      {
      }
   }
   public class b : a
   {
      public const int i = c + 1;   // CS0110, c already references i
      public const int c = i + 1;
      // the following line would be OK
      // public const int c = 10;
   }
}