In The Following C Code Which Of The Following Statement Is Not #630
In the following C# code, which of the following statement is not correct?</p> <pre><code class="language-csharp" line="1"> public class MyContainer<T> where T: class, IComparable { /* insert code here */ } </code></pre>
This multiple choice question (MCQ) is related to the book/course gs gs108 CSharp. It can also be found in gs gs108 Delegates, Generics and LINQ - Generic Methods - Quiz No.1.
In the following C# code, which of the following statement is not correct?
public class MyContainer<T> where T: class, IComparable { /* insert code here */ }
Class MyContainer requires that its type argument must implement Icomparable interface
There are multiple constraints on type argument to MyContainer class
Class MyContainer requires that its type argument must be a reference type (class)
Compiler will report an error