LANGUAGE

Unbound generic type

References an unbound generic type definition in a typeof expression, not a constructible instance type.

Formal Syntax & Structure

csharp syntaxcsharp
typeof(Pair<>)

Working Example

Example Snippetcsharp
System.Console.WriteLine(typeof(System.Collections.Generic.List<>).ContainsGenericParameters);
C# & .NET Reference