Select the type argument of an open constructed type?

Select the type argument of an open constructed type?
A. Gen<int>
B. Gen<T>
C. Gen<>
D. None of the mentioned
 
Answer: c
Explanation: A generic type, such as Gen<T>, is an abstraction. In C# terminology, a construct such as Gen<T> is called an open constructed type, because the type parameter T (rather than an actual type, such as int) is specified.
 

Tìm kiếm

Back
Top