Class EnumeratorWithResult<T>
An IEnumerator that also records a given result when it is finished.
It is intended for use with Unity coroutines.
Inheritance
EnumeratorWithResult<T>
Assembly: Tessera.dll
Syntax
public class EnumeratorWithResult<T> : IEnumerator
Type Parameters
Constructors
EnumeratorWithResult(IEnumerator)
Declaration
public EnumeratorWithResult(IEnumerator e)
Parameters
Properties
Current
Declaration
public object Current { get; }
Property Value
Result
The value returned by this enumerator.
This will throw if you attempt to access it before fully iterating through the enumerator.
Declaration
Property Value
Methods
MoveNext()
Declaration
Returns
Reset()
Declaration
TryGetResult(out T)
The value returned by this enumerator.
This will return false if you attempt to access it before fully iterating through the enumerator.
Declaration
public bool TryGetResult(out T result)
Parameters
Type |
Name |
Description |
T |
result |
|
Returns
Implements