Vidyalelo
C# Programming · Q56

Delegates and Events in C Sharp

Programming · C# Programming · question 56

Q56

Which of these is a correct way of defining generic method?

A.
name(T1, T2, ..., Tn) { /* ... */ }
B.
public name { /* ... */ }
Answer
C.
class name[T1, T2, ..., Tn] { /* ... */ }
D.
name{T1, T2, ..., Tn} { /* ... */ }

Answer: Option B

Solution

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