public enum test{today=1,tommorrow=2}
Enum.GetName(typeof(test), 2);//获取的值为字符串tommorrow(int)test.today;//获取的值是整数1