var name_list = Enum.GetNames(typeof(IdentifyTypeEnum)).ToList(); name_list.RemoveAt(name_list.IndexOf(IdentifyTypeEnum.ID_TYPE_CORP.ToString())); var value_list = Enum.GetValues(typeof(IdentifyTypeEnum)).Cast<int>().ToList(); value_list.RemoveAt(value_list.IndexOf((int)IdentifyTypeEnum.ID_TYPE_CORP)); var enum_list = Enum.GetValues(typeof(IdentifyTypeEnum)).Cast<IdentifyTypeEnum>().ToList(); public enum IdentifyTypeEnum { [Remark("居民身份证及其他以公民身份证号为标识的证件")] ID_TYPE_NEWPRC_ID = 1014691, [Remark("户口簿")] ID_TYPE_ResidenceBooklet = 1000110, [Remark("护照")] ID_TYPE_Passport = 1000111, [Remark("军人身份证件")] ID_TYPE_Military_ID = 1014692, [Remark("港澳居民来往内地通行证")] ID_TYPE_HongKong_Macao_Pass = 1000114, [Remark("台湾同胞来往内地通行证")] ID_TYPE_TaiwanPass = 1000115, [Remark("外国人居留证")] ID_TYPE_AlienResidencePermit = 1000117, [Remark("警官证")] ID_TYPE_PoliceOfficerCard = 1000118, [Remark("其他证件")] ID_TYPE_Other = 1000122, [Remark("香港身份证")] ID_TYPE_HongKong_ID = 1000119, [Remark("澳门身份证")] ID_TYPE_Macao_ID = 1000120, [Remark("台湾身份证")] ID_TYPE_Taiwan_ID = 1000121, [Remark("企业(统一社会信用代码)")] ID_TYPE_CORP = 100, }
标签:Remark,C#,list,Enum,List,枚举,IdentifyTypeEnum,TYPE,ID From: https://www.cnblogs.com/hofmann/p/17807735.html