字符串转换成枚举值
public enum eOutputType { None=0,天才=1 }
eOutputType tmp = (eOutputType)(Enum.Parse(typeof(eOutputType), "天才");
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。