הערה
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות להיכנס או לשנות מדריכי כתובות.
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות לשנות מדריכי כתובות.
generic parameter lists can only appear on managed or WinRTclasses, structs, or functions
Remarks
A generic parameter list was used incorrectly. For more information, see Generics.
Example
The following example 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 {};