nameof(List<>) works without a generic type argument in C# 14
C# 14 lets you write nameof(List<>) instead of supplying a type argument just to get the name. The result is still List.
C# 14 lets you write nameof(List<>) instead of supplying a type argument just to get the name. The result is still List.
A primary constructor parameter stays a parameter. Declare a property or field when the value should be an explicit member of the type.