Action
    Preparing search index...

    Interface IDataNodeProducer

    This is the interface for creating data nodes.

    This interface is used when iterating over a collection but one wants to reuse the same DataNode for each iteration.

    2.0

    interface IDataNodeProducer {
        Cast<T1, T2>(this: T2, type: TypeRef<T1>): T1;
        TryCast<T1, T2>(this: T2, type: TypeRef<T1>): null | T1;
    }

    Hierarchy (View Summary)

    Implemented by

    Index

    Methods

    Methods

    • Casts this object to the specified type. Throws error on failure.

      Type Parameters

      • T1

        The target type of the cast.

      • T2

        The type of the object to cast.

      Parameters

      Returns T1

    • Casts this object to the specified type. Returns null on failure.

      Type Parameters

      • T1

        The target type of the cast.

      • T2

        The type of the object to cast.

      Parameters

      Returns null | T1