หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
'type_parameter' : the value constraint and the ref constraint are mutually exclusive
You cannot constrain a generic type to both value class
and ref class
.
See Constraints on Generic Type Parameters (C++/CLI) for more information.
Example
The following sample generates C3384.
// C3384.cpp
// compile with: /c /clr
generic <typename T>
where T : ref class
where T : value class // C3384
ref class List {};