<PackageReference Include="Newtonsoft.Json" Version="11.0.2" />

ReflectionAttributeProvider

Provides methods to get attributes from a Type, MemberInfo, ParameterInfo or Assembly.
public ReflectionAttributeProvider(object attributeProvider)

Initializes a new instance of the ReflectionAttributeProvider class.

public IList<Attribute> GetAttributes(bool inherit)

Returns a collection of all of the attributes, or an empty collection if there are no attributes.

public IList<Attribute> GetAttributes(Type attributeType, bool inherit)

Returns a collection of attributes, identified by type, or an empty collection if there are no attributes.