Search Results for

    Show / Hide Table of Contents

    Class AttributeMapBuilder

    Defines a mutable attribute map.

    Inheritance
    object
    AttributeMapBuilder
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Flame
    Assembly: Flame.dll
    Syntax
    public sealed class AttributeMapBuilder

    Constructors

    | Edit this page View Source

    AttributeMapBuilder()

    Creates an empty attribute map builder.

    Declaration
    public AttributeMapBuilder()
    | Edit this page View Source

    AttributeMapBuilder(AttributeMap)

    Creates an attribute map builder by copying the contents of an existing attribute map.

    Declaration
    public AttributeMapBuilder(AttributeMap attributes)
    Parameters
    Type Name Description
    AttributeMap attributes

    An attribute map.

    | Edit this page View Source

    AttributeMapBuilder(AttributeMapBuilder)

    Creates an attribute map builder by copying the contents of another attribute map builder.

    Declaration
    public AttributeMapBuilder(AttributeMapBuilder attributes)
    Parameters
    Type Name Description
    AttributeMapBuilder attributes

    An attribute map builder.

    | Edit this page View Source

    AttributeMapBuilder(params IAttribute[])

    Creates an attribute map builder from an array of attributes.

    Declaration
    public AttributeMapBuilder(params IAttribute[] attributes)
    Parameters
    Type Name Description
    IAttribute[] attributes

    An array of attributes.

    | Edit this page View Source

    AttributeMapBuilder(IEnumerable<IAttribute>)

    Creates an attribute map builder from a sequence of attributes.

    Declaration
    public AttributeMapBuilder(IEnumerable<IAttribute> attributes)
    Parameters
    Type Name Description
    IEnumerable<IAttribute> attributes

    A sequence of attributes.

    Methods

    | Edit this page View Source

    Add(IAttribute)

    Adds the given attribute to this attribute map builder.

    Declaration
    public void Add(IAttribute attribute)
    Parameters
    Type Name Description
    IAttribute attribute
    | Edit this page View Source

    AddRange(AttributeMap)

    Adds the given range of attributes to this attribute map builder.

    Declaration
    public void AddRange(AttributeMap attributes)
    Parameters
    Type Name Description
    AttributeMap attributes
    | Edit this page View Source

    AddRange(AttributeMapBuilder)

    Adds the given range of attributes to this attribute map builder.

    Declaration
    public void AddRange(AttributeMapBuilder attributes)
    Parameters
    Type Name Description
    AttributeMapBuilder attributes
    | Edit this page View Source

    AddRange(IAttribute[])

    Adds the given range of attributes to this attribute map builder.

    Declaration
    public void AddRange(IAttribute[] attributes)
    Parameters
    Type Name Description
    IAttribute[] attributes
    | Edit this page View Source

    AddRange(IEnumerable<IAttribute>)

    Adds the given range of attributes to this attribute map builder.

    Declaration
    public void AddRange(IEnumerable<IAttribute> attributes)
    Parameters
    Type Name Description
    IEnumerable<IAttribute> attributes
    | Edit this page View Source

    Contains(IType)

    Checks if this attribute map contains at least one attribute of a particular type.

    Declaration
    public bool Contains(IType type)
    Parameters
    Type Name Description
    IType type

    The type of attribute to look for.

    Returns
    Type Description
    bool

    true if an attribute of type type is in this attribute map; otherwise, false.

    | Edit this page View Source

    GetAll(IType)

    Gets all attributes of a particular type in this attribute map.

    Declaration
    public IEnumerable<IAttribute> GetAll(IType type)
    Parameters
    Type Name Description
    IType type

    The type of attribute to look for.

    Returns
    Type Description
    IEnumerable<IAttribute>

    A sequence that contains all attributes of type type defined in this attribute map.

    | Edit this page View Source

    GetOrNull(IType)

    Finds the first attribute of a particular type. Returns null if no such attribute exists.

    Declaration
    public IAttribute GetOrNull(IType type)
    Parameters
    Type Name Description
    IType type

    The type of attribute to look for.

    Returns
    Type Description
    IAttribute

    An attribute of type type, if one is defined in this attribute map; otherwise, null.

    | Edit this page View Source

    RemoveAll(IType)

    Removes all attributes that have the given type.

    Declaration
    public void RemoveAll(IType type)
    Parameters
    Type Name Description
    IType type
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX