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
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 for enumerations?
How about using a valid identifier like B_Plus?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With