Vidyalelo
C# Programming · Q54

Delegates and Events in C Sharp

Programming · C# Programming · question 54

Q54

In the following C# code, which of the following statements are perfectly valid? public class MyContainer where T: IComparable /* insert code here */

A.
Class MyConatiner requires that its type argument must implement Icomparable interface
Answer
B.
There are multiple constraints on type argument to MyContainer class
C.
Type argument of class MyContainer should be Icomparable
D.
None of the mentioned

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board