<PackageReference Include="Namotion.Reflection" Version="3.2.0" />

AttributeExtensions

public static class AttributeExtensions
Provides attribute extensions.
public static T GetAttribute<T>(this ContextualMemberInfo info, bool inherit)

Gets an attribute of the given type which is defined on the context or on the type.

public static T GetAttribute<T>(this ContextualParameterInfo info, bool inherit)

Gets an attribute of the given type which is defined on the context or on the type.

public static T GetAttribute<T>(this CachedType info, bool inherit)

Gets an attribute of the given type which is defined on the context or on the type.

public static IEnumerable<T> GetAttributes<T>(this ContextualMemberInfo info, bool inherit)

Gets the attributes of the given type which are defined on the context or on the type.

public static IEnumerable<Attribute> GetAttributes(this ContextualMemberInfo info, bool inherit)

Gets the attributes of the given type which are defined on the context or on the type.

public static IEnumerable<T> GetAttributes<T>(this ContextualParameterInfo info, bool inherit)

Gets the attributes of the given type which are defined on the context or on the type.

public static IEnumerable<Attribute> GetAttributes(this ContextualParameterInfo info, bool inherit)

Gets the attributes of the given type which are defined on the context or on the type.

public static IEnumerable<T> GetAttributes<T>(this CachedType info, bool inherit)

Gets the attributes of the given type which are defined on the context or on the type.

public static IEnumerable<Attribute> GetAttributes(this CachedType info, bool inherit)

Gets the attributes of the given type which are defined on the context or on the type.

public static T GetContextAttribute<T>(this ContextualType contextualType, bool inherit)

Gets an attribute of the given type which is defined on the context or on the type.

public static IEnumerable<T> GetContextAttributes<T>(this ContextualType contextualType, bool inherit)

Gets the attributes of the given type which are defined on the context or on the type.

public static IEnumerable<Attribute> GetContextAttributes(this ContextualType contextualType, bool inherit)

Gets the attributes of the given type which are defined on the context or on the type.

public static T GetContextOrTypeAttribute<T>(this ContextualType contextualType, bool inherit)

Gets an attribute of the given type which is defined on the context or on the type.

public static IEnumerable<T> GetContextOrTypeAttributes<T>(this ContextualType contextualType, bool inherit)

Gets the attributes of the given type which are defined on the context or on the type.

public static IEnumerable<Attribute> GetContextOrTypeAttributes(this ContextualType contextualType, bool inherit)

Gets the attributes of the given type which are defined on the context or on the type.

public static bool IsAttributeDefined<T>(this ContextualMemberInfo info, bool inherit)

Gets the attributes of the given type which are defined on the context or on the type.

public static bool IsAttributeDefined<T>(this ContextualParameterInfo info, bool inherit)

Gets the attributes of the given type which are defined on the context or on the type.

public static bool IsAttributeDefined<T>(this CachedType info, bool inherit)

Gets the attributes of the given type which are defined on the context or on the type.

public static bool IsContextAttributeDefined<T>(this ContextualType contextualType, bool inherit)

Gets the attributes of the given type which are defined on the context or on the type.