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 CS0616

'class': is not an attribute class

An attempt was made to use an undefined attribute.

The following sample generates CS0616:

[CMyClass(i=5)]
public class CMyClass {
   public static void Main() {}
};

The following sample shows how you might define an attribute:

[attribute]
public class MyAttr {
   public int Name = 0;
   public int Count = 0;
   public MyAttr (int iCount, int sName) {
      Count = iCount; 
      Name = sName;
   }
   public static void Main() {
   }
}

[MyAttr(5, 50)] 
class Class1 {
}
[MyAttr(6, 60)]
interface Interface1 {
}