Merk
Tilgang til denne siden krever autorisasjon. Du kan prøve å logge på eller endre kataloger.
Tilgang til denne siden krever autorisasjon. Du kan prøve å endre kataloger.
explicit instantiation of a generic is not allowed
Remarks
The compiler does not allow explicit instantiation of generic classes.
Example
The following example generates C3236:
// C3236.cpp
// compile with: /clr
generic<class T>
public ref class X {};
generic ref class X<int>; // C3236
The following example demonstrates a possible resolution:
// C3236b.cpp
// compile with: /clr /c
generic<class T>
public ref class X {};