Struct World.NoAllocReadOnlyCollection<T> | Entities | 0.11.2-preview.1
docs.unity.cn
    Show / Hide Table of Contents

    Struct World.NoAllocReadOnlyCollection<T>

    Read only collection that doesn't generate garbage when used in a foreach.

    Namespace: Unity.Entities
    Syntax
    public struct NoAllocReadOnlyCollection<T> : IEnumerable<T>, IEnumerable
    Type Parameters
    Name Description
    T

    Constructors

    NoAllocReadOnlyCollection(List<T>)

    Declaration
    public NoAllocReadOnlyCollection(List<T> source)
    Parameters
    Type Name Description
    List<T> source

    Properties

    Count

    Declaration
    public int Count { get; }
    Property Value
    Type Description
    Int32

    Item[Int32]

    Declaration
    public T this[int index] { get; }
    Parameters
    Type Name Description
    Int32 index
    Property Value
    Type Description
    T

    Methods

    Contains(T)

    Declaration
    public bool Contains(T item)
    Parameters
    Type Name Description
    T item
    Returns
    Type Description
    Boolean

    GetEnumerator()

    Declaration
    public List<T>.Enumerator GetEnumerator()
    Returns
    Type Description
    List.Enumerator<>
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on Monday, October 19, 2020