<PackageReference Include="Castle.Core" Version="3.3.0" />

AttributesUtil

public static class AttributesUtil
Helper class for retrieving attributes.
public static T GetAttribute<T>(this ICustomAttributeProvider member)

Gets the attribute.

public static T[] GetAttributes<T>(this ICustomAttributeProvider member)

Gets the attributes. Does not consider inherited attributes!

public static AttributeUsageAttribute GetAttributeUsage(this Type attributeType)

public static object[] GetInterfaceAttributes(Type type)

public static T GetTypeAttribute<T>(this Type type)

Gets the type attribute.

public static T[] GetTypeAttributes<T>(Type type)

Gets the type attributes.

public static Type GetTypeConverter(MemberInfo member)

Gets the type converter.

public static bool HasAttribute<T>(this ICustomAttributeProvider member)

Gets the attribute.