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 CS1525

Invalid expression term 'character'

The compiler detected an invalid character in an expression.

The following sample generates CS1525:

class x {
   public static void Main() {
      int i = 0;
      i = i +   // OK - identifier
      'c' +     // OK - character
      (5) +     // OK - parenthesis
      [ +       // CS1525, operator not a valid expression element
      throw +   // CS1525, keyword not allowed in expression
      void;     // CS1525, void not allowed in expression
      ;
   }
}