C# 14 in the preview allows an unbound generic type as an argument to nameof. For example, nameof(List<>) returns List. Previously, you could pass only closed generic types, such as List<int>, to return List.
6 likes 1 replies
?
C# 14 in the preview allows an unbound generic type as an argument to nameof. For example, nameof(List<>) returns List. Previously, you could pass only closed generic types, such as List<int>, to return List.
6 likes 1 replies