Skip to content
This repository was archived by the owner on Dec 14, 2018. It is now read-only.
This repository was archived by the owner on Dec 14, 2018. It is now read-only.

Consider using DisplayAttribute.GroupName to determine SelectListItem's Group #2292

Closed
@pranavkm

Description

@pranavkm

IHtmlHelper.GetEnumSelectList picks up DisplayAttribute.Name to determine an enum field's display name. It seems appropriate for it also pick up DispayAttribute.GroupName to group these enum values.

That said, this might have pretty narrow scope - there aren't too many scenarios I can think of where the values used to produce SelectListItem are annotated to start with.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions