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