หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
'param' : generic parameter cannot be constrained by multiple non-interfaces : 'class'
Remarks
It is not valid to constrain a generic parameter by two or more managed classes.
Example
The following example generates C3219:
// C3219.cpp
// compile with: /clr
ref class A {};
ref class B {};
generic <class T>
where T : A, B
ref class E {}; // C3219
The following example demonstrates a possible resolution:
// C3219b.cpp
// compile with: /clr /c
ref class A {};
interface struct C {};
generic <class T>
where T : A
ref class E {};