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 C3265

'managed construct' : cannot have managed entities in an unmanaged context 'unmanaged construct'

You cannot include a managed object in an unmanaged context.

The following sample reproduces C3265:

#using <mscorlib.dll>
__gc class A {
};

__nogc class B {
/* make class B managed to resolve the error
__gc class B {
*/
   A *a;          // C3265
   __gc int b[];   // C3265   
};

void main() {
}