หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
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 {};