Skip to content

Introduce an enum description attribute #6

Description

@pergerch

@cioxideru proposed the following:


[EnumLookup]
public enum ProductCategory
{
     [Description("Just Some Special Chars !@#%! with spaces")]
     Book = 1,
     Bluray,
     ...
}

Where we can take description for value 1 and store it to dictionary table. Just in case he will accept some special characters.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions