docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct DynamicArray<T>.RangeEnumerable

    IEnumerable-like struct used to iterate through a subsection of this array. See the IEnumerable docs for more info: IEnumerable

    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
    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 IEnumerable but at the same time avoids generating Garbage. For more info, see the C# language specification of the foreach statement.

    Fields

    iterator

    The iterator associated with this Enumerable.

    Declaration
    public DynamicArray<T>.RangeEnumerable.RangeIterator iterator
    Field Value
    Type Description
    DynamicArray<T>.RangeEnumerable.RangeIterator
    See Also
    SubRange(int, int)

    Methods

    GetEnumerator()

    Returns an enumerator that iterates through this array.

    Declaration
    public DynamicArray<T>.RangeEnumerable.RangeIterator GetEnumerator()
    Returns
    Type Description
    DynamicArray<T>.RangeEnumerable.RangeIterator

    Iterator pointing before the first element in the range.

    Remarks

    The returned 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 IEnumerable but at the same time avoids generating Garbage. For more info, see the C# language specification of the foreach statement.

    See Also
    SubRange(int, int)

    Extension Methods

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

    See Also

    SubRange(int, int)
    In This Article
    Back to top
    Copyright © 2024 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)