หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
explicit specializations are not supported in generics
Remarks
A generic class was declared incorrectly. See Generics for more information.
Example
The following example generates C2979.
// C2979.cpp
// compile with: /clr /c
generic <>
ref class Utils {}; // C2979 error
generic <class T>
ref class Utils2 {}; // OK