<PackageReference Include="Newtonsoft.Json" Version="14.0.1-beta2" />

Newtonsoft.Json.Serialization.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.