enums 枚举遍历取值

public enum RYLB : int
    {
        ck = 1,
        zk = 2,
        rz = 3,
        sy = 5
    }
foreach (int r in Enum.GetValues(typeof(RYLB)))
    {
        int i=r.ToString();
    }
posted @ 2012-04-25 10:22  cxfzxj9898  阅读(396)  评论(0)    收藏  举报