docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct DynamicArray<T>.RangeEnumerable.RangeIterator

    IEnumerator-like struct used to iterate through a subsection of this array. See the IEnumerator docs for more info: https://docs.microsoft.com/en-us/dotnet/api/system.collections.ienumerator

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.Rendering
    Assembly: Unity.RenderPipelines.Core.Runtime.dll
    Syntax
    public struct DynamicArray<T>.RangeEnumerable.RangeIterator
    Remarks

    This struct intentionally does not explicitly implement the IEnumarable/IEnumerator interfaces it just follows the same function signatures. This means the duck typing used by foreach on the compiler level will pick it up as IEnumarable but at the same time avoids generating Garbage. For more info, see the C# language specification of the foreach statement.

    Constructors

    Name Description
    RangeIterator(DynamicArray<T>, int, int)

    Create an iterator to iterate over the given range in the array.

    Properties

    Name Description
    Current

    Gets the element in the DynamicArray at the current position of the iterator.

    Methods

    Name Description
    MoveNext()

    Advances the iterator to the next element of the DynamicArray.

    Reset()

    Sets the iterator to its initial position, which is before the first element in the range.

    Extension Methods

    AnalyticsUtils.ToNestedColumnWithDefault<T>(T, T, bool)
    AnalyticsUtils.ToNestedColumn<T>(T, bool)

    See Also

    SubRange(int, int)
    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)