Skip to content

Latest commit

 

History

History
23 lines (21 loc) · 1.54 KB

Lazlo-Gocs-QueryResult-T-.md

File metadata and controls

23 lines (21 loc) · 1.54 KB

QueryResult<T> Class

Holds the results from a world component query.
Use this in a foreach loop to enumerate over the tuples of components.

public sealed class QueryResult<T> :
IEnumerable<T>,
IEnumerable,
IPoolable,
IDisposable

Inheritance System.Object > QueryResult<T>

Implements System.Collections.Generic.IEnumerable<T>, System.Collections.IEnumerable, Lazlo.Gocs.IPoolable, System.IDisposable

Type parameters

T
The type of results, either a component or a tuple of components.

Remarks

This enumerable does not allocate memory when enumerating.
However, it is disposed after a single enumeration and cannot be re-enumerated.