docs.unity.cn
    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: https://docs.microsoft.com/en-us/dotnet/api/system.collections.ienumerable

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: UnityEngine.Rendering
    Syntax
    public struct 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.RangeEnumerable.RangeIterator<>

    Methods

    GetEnumerator()

    Returns an enumerator that iterates through this array.

    Declaration
    public DynamicArray<T>.RangeEnumerable.RangeIterator GetEnumerator()
    Returns
    Type Description
    DynamicArray.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.

    Extension Methods

    AnalyticsUtils.ToNestedColumn<T>(T, Boolean)
    AnalyticsUtils.ToNestedColumnWithDefault<T>(T, T, Boolean)
    ReflectionUtils.Invoke(Object, String, Object[])
    ReflectionUtils.SetField(Object, String, Object)
    ReflectionUtils.GetField(Object, String)
    ReflectionUtils.GetFields(Object)

    See Also

    SubRange(Int32, Int32)
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 08 September 2023