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 C3616

'number' : subscript not allowed in managed array declaration

A managed array was incorrectly declared. Subscript values are allowed on the right-hand side of the expression but not on the left.

The following sample generates C3616 and shows one way to resolve the error:

#using <mscorlib.dll>

void main() {
   __gc int a[2] = new __gc int [12];   // C3616

   __gc int b[] = new __gc int [12];   // ok
}