Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
'type' : no overloaded generic class takes 'number' generic type arguments
The compiler failed to find an appropriate overload.
The following sample generates C3224:
// C3224.cs
// compile with: /target:library
public class C<T> {}
public class C<T,U> {}
And then,
// C3224b.cpp
// compile with: /clr
#using "C3224.dll"
int main() {
C<int,int,int>^ c = gcnew C<int,int,int>(); // C3224
C<int,int>^ c2 = gcnew C<int,int>(); // OK
}