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 CS0133

The expression being assigned to 'variable' must be constant

A const variable cannot take as its value a variable that is not const.

The following sample generates CS0133:

namespace x
{
   public class a
   {
      public static void Main()      
      {
      }
   }
   public class b : a
   {
      public const int i = c;   // CS0133, c is not const
      public static int c = i;
      // try the following line to resolve CS0133
      // public const int c = 6;
   }
}