Question

I have a Enum as I use it in Property Grid.

 public enum Mye
    {
        [EnumItem("e 1", true, "This is e 1")]
        e1= 1,

        [EnumItem("e 2", true, "This is e 2")]
        e2= 2,
    }

Where am I supposed to see the description?

("This is e 1", "This is e 2")

Was it helpful?

Solution

I think this is what you want Enum Intellisense Display Attribute?

The description will be shown in a yellow tooltip when you are selecting 1 item from the items list of your enum.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top