0

我有一个Enum,因为我在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,
    }

我应该在哪里看到描述

(“这是 e 1”、“这是 e 2”)

4

1 回答 1

0

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.

于 2013-06-09T18:29:46.020 回答