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.
generic parameter lists can only appear on managed or WinRTclasses, structs, or functions
A generic parameter list was used incorrectly. For more information, see Generics.
Example
The following sample generates C3282 and shows how to fix it.
// C3282.cpp
// compile with: /clr /c
generic <typename T> int x; // C3282
ref struct GC0 {
generic <typename T> int x; // C3282
};
// OK
generic <typename T>
ref class M {};