共用方式為


編譯器錯誤 C3235

'specialization': 不允許泛型類別的明確或部分特製化

泛型類別不能用於明確或部分特製化。

範例

下列範例會產生 C3235。

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

generic<>
public ref class C<int> {};   // C3235 Remove this specialization to resolve this error.