共用方式為


編譯器錯誤 C3236

不能對泛型類別進行明確執行個體化

備註

編譯器不允許明確具現化泛型類別。

Example

下列範例會產生 C3236:

// C3236.cpp
// compile with: /clr
generic<class T>
public ref class X {};

generic ref class X<int>;   // C3236

下列範例示範可能的解決方案:

// C3236b.cpp
// compile with: /clr /c
generic<class T>
public ref class X {};