Show / Hide Table of Contents

    Class ImmutableXElementContainer

    A wrapper around an of XElement instances that are, themselves, made immutable inside this class.

    Inheritance
    Object
    ImmutableXElementContainer
    Implements
    IReadOnlyList<XElement>
    IReadOnlyCollection<XElement>
    IEnumerable<XElement>
    IEnumerable
    Inherited Members
    Object.Equals(Object, Object)
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: NetTopologySuite.IO
    Assembly: NetTopologySuite.IO.GPX.dll
    Syntax
    public sealed class ImmutableXElementContainer : IReadOnlyList<XElement>, IReadOnlyCollection<XElement>, IEnumerable<XElement>, IEnumerable

    Constructors

    | Improve this Doc View Source

    ImmutableXElementContainer(IEnumerable<XElement>)

    Initializes a new instance of the ImmutableXElementContainer class.

    Declaration
    public ImmutableXElementContainer(IEnumerable<XElement> items)
    Parameters
    Type Name Description
    IEnumerable<XElement> items

    The items to copy to Items.

    Exceptions
    Type Condition
    ArgumentNullException

    Thrown when items is null.

    Properties

    | Improve this Doc View Source

    Count

    Declaration
    public int Count { get; }
    Property Value
    Type Description
    Int32
    | Improve this Doc View Source

    Item[Int32]

    Declaration
    public XElement this[int index] { get; }
    Parameters
    Type Name Description
    Int32 index
    Property Value
    Type Description
    XElement
    | Improve this Doc View Source

    Items

    Gets the XElements contained in this container.

    Declaration
    public ImmutableArray<XElement> Items { get; }
    Property Value
    Type Description
    ImmutableArray<XElement>

    Methods

    | Improve this Doc View Source

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj
    Returns
    Type Description
    Boolean
    Overrides
    Object.Equals(Object)
    | Improve this Doc View Source

    GetEnumerator()

    Declaration
    public ImmutableArray<XElement>.Enumerator GetEnumerator()
    Returns
    Type Description
    ImmutableArray.Enumerator<>
    | Improve this Doc View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32
    Overrides
    Object.GetHashCode()

    Explicit Interface Implementations

    | Improve this Doc View Source

    IEnumerable<XElement>.GetEnumerator()

    Declaration
    IEnumerator<XElement> IEnumerable<XElement>.GetEnumerator()
    Returns
    Type Description
    IEnumerator<XElement>
    | Improve this Doc View Source

    IEnumerable.GetEnumerator()

    Declaration
    IEnumerator IEnumerable.GetEnumerator()
    Returns
    Type Description
    IEnumerator

    Implements

    System.Collections.Generic.IReadOnlyList<T>
    System.Collections.Generic.IReadOnlyCollection<T>
    System.Collections.Generic.IEnumerable<T>
    System.Collections.IEnumerable
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX