Examveda

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

A. name(T1, T2, ..., Tn) { /* ... */ }

B. public name { /* ... */ }

C. class name[T1, T2, ..., Tn] { /* ... */ }

D. name{T1, T2, ..., Tn} { /* ... */ }

Answer: Option B


Join The Discussion

Related Questions on Delegates and Events in C Sharp