string serverAction="设置";
ServerAction sAction = (ServerAction)Enum.Parse(typeof(ServerAction), serverAction);
if (Enum.IsDefined(typeof(ServerAction), sAction)) { //ok }本文共 170 字,大约阅读时间需要 1 分钟。
string serverAction="设置";
ServerAction sAction = (ServerAction)Enum.Parse(typeof(ServerAction), serverAction);
if (Enum.IsDefined(typeof(ServerAction), sAction)) { //ok }转载地址:http://ivvcx.baihongyu.com/