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 CS0021

Cannot apply indexing with [] to an expression of type 'type'

An attempt was made to access a value via index operation on a data type that does not support array-like operations.

The following sample generates CS0021:

public class MyClass {
   public static void Main() {
      int i = 0;
      i[2];   // CS0021
   }
}