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

Namotion.Reflection.AttributeExtensions

public static class AttributeExtensions
Provides attribute extensions.
namespace Namotion.Reflection { public static class AttributeExtensions { public static T GetContextOrTypeAttribute<[System.Runtime.CompilerServices.Nullable(0)] T>(this ContextualType contextualType, bool inherit) where T : Attribute; public static IEnumerable<T> GetContextOrTypeAttributes<[System.Runtime.CompilerServices.Nullable(0)] T>(this ContextualType contextualType, bool inherit) where T : Attribute; public static IEnumerable<Attribute> GetContextOrTypeAttributes(this ContextualType contextualType, bool inherit); public static T GetContextAttribute<[System.Runtime.CompilerServices.Nullable(0)] T>(this ContextualType contextualType, bool inherit) where T : Attribute; public static IEnumerable<T> GetContextAttributes<[System.Runtime.CompilerServices.Nullable(0)] T>(this ContextualType contextualType, bool inherit) where T : Attribute; public static IEnumerable<Attribute> GetContextAttributes(this ContextualType contextualType, bool inherit); public static bool IsContextAttributeDefined<[System.Runtime.CompilerServices.Nullable(0)] T>(this ContextualType contextualType, bool inherit) where T : Attribute; public static T GetAttribute<[System.Runtime.CompilerServices.Nullable(0)] T>(this ContextualMemberInfo info, bool inherit) where T : Attribute; public static IEnumerable<T> GetAttributes<[System.Runtime.CompilerServices.Nullable(2)] T>(this ContextualMemberInfo info, bool inherit); public static IEnumerable<Attribute> GetAttributes(this ContextualMemberInfo info, bool inherit); public static bool IsAttributeDefined<[System.Runtime.CompilerServices.Nullable(0)] T>(this ContextualMemberInfo info, bool inherit) where T : Attribute; public static T GetAttribute<[System.Runtime.CompilerServices.Nullable(0)] T>(this ContextualParameterInfo info, bool inherit) where T : Attribute; public static IEnumerable<T> GetAttributes<[System.Runtime.CompilerServices.Nullable(2)] T>(this ContextualParameterInfo info, bool inherit); public static IEnumerable<Attribute> GetAttributes(this ContextualParameterInfo info, bool inherit); public static bool IsAttributeDefined<[System.Runtime.CompilerServices.Nullable(0)] T>(this ContextualParameterInfo info, bool inherit) where T : Attribute; public static T GetAttribute<[System.Runtime.CompilerServices.Nullable(0)] T>(this CachedType info, bool inherit) where T : Attribute; public static IEnumerable<T> GetAttributes<[System.Runtime.CompilerServices.Nullable(2)] T>(this CachedType info, bool inherit); public static IEnumerable<Attribute> GetAttributes(this CachedType info, bool inherit); public static bool IsAttributeDefined<[System.Runtime.CompilerServices.Nullable(0)] T>(this CachedType info, bool inherit) where T : Attribute; } }