C# Class Newtonsoft.Json.Serialization.ReflectionAttributeProvider

Inheritance: IAttributeProvider
ファイルを表示 Open project: JamesNK/Newtonsoft.Json Class Usage Examples

Public Methods

Method Description
GetAttributes ( Type attributeType, bool inherit ) : IList

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

GetAttributes ( bool inherit ) : IList

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

ReflectionAttributeProvider ( object attributeProvider ) : System

Initializes a new instance of the ReflectionAttributeProvider class.

Method Details

GetAttributes() public method

Returns a collection of attributes, identified by type, or an empty collection if there are no attributes.
public GetAttributes ( Type attributeType, bool inherit ) : IList
attributeType System.Type The type of the attributes.
inherit bool When true, look up the hierarchy chain for the inherited custom attribute.
return IList

GetAttributes() public method

Returns a collection of all of the attributes, or an empty collection if there are no attributes.
public GetAttributes ( bool inherit ) : IList
inherit bool When true, look up the hierarchy chain for the inherited custom attribute.
return IList

ReflectionAttributeProvider() public method

Initializes a new instance of the ReflectionAttributeProvider class.
public ReflectionAttributeProvider ( object attributeProvider ) : System
attributeProvider object The instance to get attributes for. This parameter should be a , , or .
return System