नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
'type' : type not allowed as a constraint
Remarks
For a type to be a constraint, it must be either a value type or reference to a managed class or interface.
Example
The following example generates C3218.
// C3218.cpp
// compile with: /clr /c
class A {};
ref class B {};
// Delete the following 3 lines to resolve.
generic <class T>
where T : A // C3218
ref class C {};
// OK
generic <class T>
where T : B
ref class D {};