הערה
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות להיכנס או לשנות מדריכי כתובות.
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות לשנות מדריכי כתובות.
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 {};