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