public enum eErrorDetailCode : int { 登陆成功 = 0, 登出 = 1, 应用错误 = 2, 成功 = 16, 失败 = 17 }
foreach (
int intError in Enum.GetValues(typeof(eErrorDetailCode))) {
strKey = intError.ToString();
strValue = Enum.GetName(typeof(eErrorDetailCode), intError);
}