Which Of These Is A Correct Way Of Defining Generic Method #625
Which of these is a correct way of defining generic method?
This multiple choice question (MCQ) is related to the book/course gs gs108 CSharp. It can also be found in gs gs108 Delegates, Generics and LINQ - Fundamental of Generics - Quiz No.1.
Which of these is a correct way of defining generic method?
name(T1, T2, …, Tn) { /* … */ }
public name { /* … */ }
class name[T1, T2, …, Tn] { /* … */ }
name{T1, T2, …, Tn} { /* … */ }