Class ReflectionAttributeProvider
Provides methods to get attributes from a System.
Inheritance
Implements
Inherited Members
Namespace: Bayat.Json.Serialization
Assembly: Bayat.Json.Runtime.dll
Syntax
public class ReflectionAttributeProvider : IAttributeProvider
Constructors
| Improve this Doc View SourceReflectionAttributeProvider(Object)
Initializes a new instance of the Reflection
Declaration
public ReflectionAttributeProvider(object attributeProvider)
Parameters
Type | Name | Description |
---|---|---|
System. |
attributeProvider | The instance to get attributes for. This parameter should be a System. |
Methods
| Improve this Doc View SourceGetAttributes(Boolean)
Returns a collection of all of the attributes, or an empty collection if there are no attributes.
Declaration
public IList<Attribute> GetAttributes(bool inherit)
Parameters
Type | Name | Description |
---|---|---|
System. |
inherit | When true, look up the hierarchy chain for the inherited custom attribute. |
Returns
Type | Description |
---|---|
System. |
A collection of System. |
GetAttributes(Type, Boolean)
Returns a collection of attributes, identified by type, or an empty collection if there are no attributes.
Declaration
public IList<Attribute> GetAttributes(Type attributeType, bool inherit)
Parameters
Type | Name | Description |
---|---|---|
System. |
attributeType | The type of the attributes. |
System. |
inherit | When true, look up the hierarchy chain for the inherited custom attribute. |
Returns
Type | Description |
---|---|
System. |
A collection of System. |