नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
'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 {};