public static string GetDescription(this PropertyAttribute2nd prop)
        {
            var description = prop.GetAttributeOfType <DescriptionAttribute>();

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