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 CS0611

Array elements cannot be of type refany

The System.TypedReference type is not valid for use as the type for elements in an array.

The following sample generates CS0611:

public class a {
   public static void Main() {
      System.TypedReference[] ao = new System.TypedReference [10];   // CS0611
      // try the following line instead
      // int[] ao = new int[10]; 
   }
}