C# Programming - Generics - Discussion

Discussion :: Generics - General Questions (Q.No.4)

4. 

Which of the following statements is valid about generic procedures in C#.NET?

[A]. All procedures in a Generic class are generic.
[B]. Only those procedures labeled as Generic are generic.
[C]. Generic procedures can take at the most one generic parameter.
[D]. Generic procedures must take at least one type parameter.
[E]. None of the above.

Answer: Option D

Explanation:

No answer description available for this question.

Wowo said: (Mar 14, 2014)  
How about 'KeyNotFoundException' class object?

Ankit said: (Apr 30, 2014)  
As we know that generic class are use for type safety so when we create the object then we must specify the type of object explicitly.

Post your comments here:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.