华佗小知识
您的当前位置:首页字符串转换成枚举值

字符串转换成枚举值

来源:华佗小知识
字符串转换成枚举值

public enum eOutputType
    {
        None=0,天才=1
    }

eOutputType tmp = (eOutputType)(Enum.Parse(typeof(eOutputType), "天才");

转载于:https://www.cnblogs.com/ClarkChan/archive/2007/08/26/870365.html

因篇幅问题不能全部显示,请点此查看更多更全内容