文档

Unity Engine

Unity Engine

World.NoAllocReadOnlyCollection<T>

Read only collection that doesn't generate garbage when used in a foreach.
阅读时间1 分钟最后更新于 19 天前

Definition

public struct World.NoAllocReadOnlyCollection<T> : IEnumerable<T>, IEnumerable

Constructors

Constructor

Description

NoAllocReadOnlyCollection`1(System.Collections.Generic.List{`0})Construct a new instance

Properties

Property

Description

CountThe number of list elements
this[]Look up a list element by index

Methods

Method

Description

ContainsCheck if the list contains a specific element
GetEnumeratorGet an enumerator interface to the list