示例#1
0
        public static string GetDescription(this PropertyAttribute2nd prop)
        {
            var description = prop.GetAttributeOfType <DescriptionAttribute>();

            return(description?.Description ?? prop.ToString());
        }
示例#2
0
 public static AttributeFormulaAttribute GetFormula(this PropertyAttribute2nd attribute)
 {
     return(attribute.GetAttributeOfType <AttributeFormulaAttribute>());
 }