Exemplo n.º 1
0
        public static string GetDescription(this PropertyAttribute2nd prop)
        {
            var description = prop.GetAttributeOfType <DescriptionAttribute>();

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