Show / Hide Table of Contents

    Interface IAttributeProvider

    Provides methods to get attributes.

    Namespace: Bayat.Json.Serialization
    Assembly: Bayat.Json.Runtime.dll
    Syntax
    public interface IAttributeProvider

    Methods

    | Improve this Doc View Source

    GetAttributes(Boolean)

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

    Declaration
    IList<Attribute> GetAttributes(bool inherit)
    Parameters
    Type Name Description
    System.Boolean inherit

    When true, look up the hierarchy chain for the inherited custom attribute.

    Returns
    Type Description
    System.Collections.Generic.IList<System.Attribute>

    A collection of System.Attributes, or an empty collection.

    | Improve this Doc View Source

    GetAttributes(Type, Boolean)

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

    Declaration
    IList<Attribute> GetAttributes(Type attributeType, bool inherit)
    Parameters
    Type Name Description
    System.Type attributeType

    The type of the attributes.

    System.Boolean inherit

    When true, look up the hierarchy chain for the inherited custom attribute.

    Returns
    Type Description
    System.Collections.Generic.IList<System.Attribute>

    A collection of System.Attributes, or an empty collection.

    • Improve this Doc
    • View Source
    • 0 Comments