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 C3156

'class' : you cannot have a local definition of a managed class, struct or interface

A function cannot contain the definition of a managed class, struct, or interface.

The following sample generates C3156:

#using <mscorlib.dll>

void f() {
   __gc class X {   // C3156
   };
}

void main() {
}