public static TAttribute GetAttribute <TAttribute>(this IAttributable attributable) where TAttribute : class, IPropertyAttribute { if (null == attributable) { return(null); } return(UTinyPropertyMetaData <IAttributable> .GetAttribute <TAttribute>(attributable)); }
public static TAttribute GetAttribute <TAttribute>(this IProperty property) where TAttribute : class, IPropertyAttribute { if (null == property) { return(null); } return(UTinyPropertyMetaData <IProperty> .GetAttribute <TAttribute>(property)); }