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 CS0633

argument to name attribute must be a valid identifier

Any argument that you pass to the name attribute must be a valid identifier.

The following sample generates CS0633:

using System;

public class MonthDays {
      [name("bad indexer name")]   // CS0633
      public int this[int iPropIndex] {
         get {
            return 0;
         }
   
         set {
         }
      }
}
   
public class test {
   public static void Main( string[] args ) {
   }
}