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 C3280

'class' : a member-function of a managed class cannot be compiled as an unmanaged function

Managed class member functions cannot be compiled as unmanaged functions.

The following sample generates C3280:

#using <mscorlib.dll>

__gc struct A {
   #pragma unmanaged   // remove this line to resolve
   void func() {      // C3280
   }
   #pragma managed
};

void main() {
}