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 C2890

'class' : managed class can only have one non-interface superclass

A managed class can have only one base class. The following sample generates C2890:

#using <mscorlib.dll>

__gc class A {
};
__gc class B {
};

__gc class C : public A, public B {   // C2890
};

/* to resolve the error use the code below
__gc class C : public A {
};
*/
void main() {
}