标签:des ar io os on as tt br type
var memInfo = enumType.GetType().GetMember(enumType.ToString());
var attributes = memInfo[0].GetCustomAttributes(typeof(DescriptionAttribute), false).Cast<DescriptionAttribute>();
if (attributes.Any())
return attributes.First().Description;
return string.Empty;
标签:des ar io os on as tt br type
原文地址:http://www.cnblogs.com/sunzhenyong/p/4173403.html