Show / Hide Table of Contents

Class EnumeratorWithResult<T>

An IEnumerator that also records a given result when it is finished. It is intended for use with Unity coroutines.

Inheritance
Object
EnumeratorWithResult<T>
Implements
IEnumerator
Namespace: Tessera
Assembly: cs.temp.dll.dll
Syntax
public class EnumeratorWithResult<T> : IEnumerator
Type Parameters
Name Description
T

Constructors

EnumeratorWithResult(IEnumerator)

Declaration
public EnumeratorWithResult(IEnumerator e)
Parameters
Type Name Description
IEnumerator e

Properties

Current

Declaration
public object Current { get; }
Property Value
Type Description
Object

Result

The value returned by this enumerator. This will throw if you attempt to access it before fully iterating through the enumerator.

Declaration
public T Result { get; }
Property Value
Type Description
T

Methods

MoveNext()

Declaration
public bool MoveNext()
Returns
Type Description
Boolean

Reset()

Declaration
public void Reset()

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
Type Description
Boolean

Implements

System.Collections.IEnumerator
Back to top Generated by DocFX