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
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
Name | Description |
---|---|
iterator | The iterator associated with this Enumerable. |
Methods
Name | Description |
---|---|
GetEnumerator() | Returns an enumerator that iterates through this array. |