/// <summary>
/// 根据枚举key得到枚举注释
/// </summary>
/// <param name="dataType"></param>
/// <returns></returns>
protected string GetDataTypeDescription(string dataType)
{
var type = typeof(Enums);
var memInfo = type.GetMember(dataType);
var attributes = memInfo[0].GetCustomAttributes(typeof(DescriptionAttribute), false);
var description = ((DescriptionAttribute)attributes[0]).Description;
return description;
}
[Description("123456789")]
ClassNotice = 1,