Compiler Error C3209
TOC
Collapse the table of content
Expand the table of content
This documentation is archived and is not being maintained.

Compiler Error C3209

Error Message

'class' : generic class must be a managed class

A generic class must be a managed class.

The following sample generates C3209:

// C3209.cpp
// compile with: /clr
generic <class T>
class C {};   // C3209

// OK
generic <class T>
ref class D {};
Show:
© 2016 Microsoft