문제

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")

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top