Display Text for Enum [duplicate]
问题 This question already has answers here : String to enum conversion in C# (8 answers) C# using numbers in an enum (7 answers) Closed 7 years ago . HI I have the following enum public enum Priority : byte { A=1, B+ = 2, B=4, C=8, D=16, E=32 } I want to add B+ in the enum but it is giving me error 回答1: You can add user friendly description for enum like below : enum MyEnum { [Description("This is black")] Black, [Description("This is white")] White } Ref. Link : How to have userfriendly names