docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct ReadOnlyListSpan<T>.Enumerator

    Provides an enumerator for the elements of ReadOnlyListSpan.

    Implements
    IEnumerator<T>
    IEnumerator
    IDisposable
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.XR.CoreUtils.Collections
    Assembly: Unity.XR.CoreUtils.dll
    Syntax
    public struct ReadOnlyListSpan<T>.Enumerator : IEnumerator<T>, IEnumerator, IDisposable

    Properties

    Current

    Gets the element in the collection at the current position of the enumerator.

    Declaration
    public T Current { get; }
    Property Value
    Type Description
    T
    Exceptions
    Type Condition
    ArgumentOutOfRangeException

    Thrown if the current position is outside the bounds of the ReadOnlyListSpan.

    end

    The exclusive end index of a slice of the list.

    Declaration
    public readonly int end { get; }
    Property Value
    Type Description
    int

    start

    The inclusive start index of a slice of the list.

    Declaration
    public readonly int start { get; }
    Property Value
    Type Description
    int

    Methods

    MoveNext()

    Advances the enumerator to the next element of the collection.

    Declaration
    public bool MoveNext()
    Returns
    Type Description
    bool

    true if the next position is within the bounds of the list. Otherwise, false.

    Reset()

    Sets the enumerator to its initial position, which is before the first element in the collection.

    Declaration
    public void Reset()

    Implements

    IEnumerator<T>
    IEnumerator
    IDisposable
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)