字符串转换成枚举值
字符串转换成枚举值
public enum eOutputType
{
None=0,天才=1
}
eOutputType tmp = (eOutputType)(Enum.Parse(typeof(eOutputType), "天才");
public enum eOutputType
{
None=0,天才=1
}
eOutputType tmp = (eOutputType)(Enum.Parse(typeof(eOutputType), "天才");
posted on 2007-08-26 17:39 Clark Chan 阅读(3678) 评论(3) 编辑 收藏 举报