Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

get enum name

string[] nameList=  System.Enum.GetNames(typeof(Word));
        foreach (var name in nameList)
        {
            print(name);//获取名称
        }
1
2
3
4
5
Source by greambwang.blog.csdn.net #
 
PREVIOUS NEXT
Tagged: #enum
ADD COMMENT
Topic
Name
4+7 =