Delegates And Events In C Sharp - Study Mode
[#11] Which of these type parameters is used for generic methods to return and accept any type of object?
Correct Answer
(C) T
[#12] In the following C# code, which of the following statements are perfectly valid? public class MyContainer<T> where T: IComparable
{
/* insert code here */
}
Correct Answer
(A) Class MyConatiner requires that its type argument must implement Icomparable interface
[#13] Which of these is a correct way of defining generic method?
Correct Answer
(B) public name { /* ... */ }
[#14] Choose the advantages of using generics?
Correct Answer
(D) All of the mentioned
[#15] Choose the statements which makes delegate in C#.NET different from a normal class?
Correct Answer
(D) All of the mentioned