'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() { }