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

            return(description?.Description ?? prop.ToString());
        }
コード例 #2
0
ファイル: PropertyAttribute2nd.cs プロジェクト: zarlant/ACE
 public static AttributeFormulaAttribute GetFormula(this PropertyAttribute2nd attribute)
 {
     return(attribute.GetAttributeOfType <AttributeFormulaAttribute>());
 }