Skip to content

[Proposal]: Unbound generic types in nameof (VS 18.0, .NET 10) #8662

@CyrusNajmabadi

Description

@CyrusNajmabadi

Unbound generic types in nameof

Summary

Allows unbound generic types to be used with nameof, as in nameof(List<>) to obtain the string "List", rather than having to specify an unused generic type argument in order to obtain the same string.

Design meetings

main/meetings/2017/LDM-2017-11-06.md#roslyn-20450
main/meetings/2024/LDM-2024-10-16.md#unbound-generic-types-in-nameof

Metadata

Metadata

Labels

Implemented Needs ECMA SpecThis feature has been implemented in C#, but still needs to be merged into the ECMA specificationProposal champion

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions