天天看點

C# Enum,Int,String的互相轉換

1、Enum-->String

2、String-->Enum

3、Enum-->Int

4、Int-->Enum

5、判斷某個整型是否定義在枚舉中的方法:Enum.IsDefined

參考: