public static string GetDescription(this PropertyAttribute2nd prop) { var description = prop.GetAttributeOfType <DescriptionAttribute>(); return(description?.Description ?? prop.ToString()); }
public static AttributeFormulaAttribute GetFormula(this PropertyAttribute2nd attribute) { return(attribute.GetAttributeOfType <AttributeFormulaAttribute>()); }