Cast int to Enum while knowing Type
This question already has an answer here:
You can use:
Enum.ToObject(type, value);
ȍ 链接地址: http://www.djcxy.com/p/22528.html
上一篇: 分配一个变量枚举值
下一篇: 在知道类型时将int转换为Enum
This question already has an answer here:
You can use:
Enum.ToObject(type, value);
ȍ 链接地址: http://www.djcxy.com/p/22528.html
上一篇: 分配一个变量枚举值
下一篇: 在知道类型时将int转换为Enum