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 bool HasAttribute <TAttribute>(this IAttributable attributable) where TAttribute : class, IPropertyAttribute { if (null == attributable) { return(false); } return(UTinyPropertyMetaData <IAttributable> .HasAttribute <TAttribute>(attributable)); }
public static void RemoveAttribute <TAttribute>(this IAttributable attributable, TAttribute attribute) where TAttribute : class, IPropertyAttribute { if (null == attributable) { return; } UTinyPropertyMetaData <IAttributable> .UnregisterAttribute(attributable, attribute); }
public static TAttribute GetAttribute <TAttribute>(this IProperty property) where TAttribute : class, IPropertyAttribute { if (null == property) { return(null); } return(UTinyPropertyMetaData <IProperty> .GetAttribute <TAttribute>(property)); }
public static bool HasAttribute <TAttribute>(this IProperty property) where TAttribute : class, IPropertyAttribute { if (null == property) { return(false); } return(UTinyPropertyMetaData <IProperty> .HasAttribute <TAttribute>(property)); }
public static void RemoveAttribute <TAttribute>(this IProperty property, TAttribute attribute) where TAttribute : class, IPropertyAttribute { if (null == property) { return; } UTinyPropertyMetaData <IProperty> .UnregisterAttribute(property, attribute); }