Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class Newtonsoft.​Json.​Serialization.​ReflectionAttributeProvider
Assembly: Newtonsoft.Json
Inheritance: object → ReflectionAttributeProvider
Implemented Interfaces
Provides methods to get attributes from a <see cref="T:System.Type" /> , <see cref="T:System.Reflection.MemberInfo" /> , <see cref="T:System.Reflection.ParameterInfo" /> or <see cref="T:System.Reflection.Assembly" /> .
Methods
public
System.​Collections.​Generic.​IList<​System.​Attribute>
GetAttributes​(bool inherit)
Returns a collection of all of the attributes, or an empty collection if there are no attributes.
Returns A collection of <see cref="T:System.Attribute" /> s, or an empty collection.
inherit
When <c>true</c> , look up the hierarchy chain for the inherited custom attribute.
public
System.​Collections.​Generic.​IList<​System.​Attribute>
GetAttributes​(System.​Type attributeType,
bool inherit)
Returns a collection of attributes, identified by type, or an empty collection if there are no attributes.
Returns A collection of <see cref="T:System.Attribute" /> s, or an empty collection.
attributeType
The type of the attributes.
inherit
When <c>true</c> , look up the hierarchy chain for the inherited custom attribute.
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object