Search Results for

    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: Tessera.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
    bool

    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
    bool

    Implements

    IEnumerator
    In this article
    Back to top Generated by DocFX