Search Results for

    Show / Hide Table of Contents

    Class EntryReferenceExtensions

    Inheritance
    Object
    EntryReferenceExtensions
    Namespace: MackySoft.UniData
    Assembly: cs.temp.dll.dll
    Syntax
    public static class EntryReferenceExtensions

    Methods

    GetEntry<T>(IReadOnlyEntryReference<IEntry>)

    Get the referenced entry casted to the specified type.

    Declaration
    public static T GetEntry<T>(this IReadOnlyEntryReference<IEntry> source)
        where T : IEntry
    Parameters
    Type Name Description
    IReadOnlyEntryReference<IEntry> source
    Returns
    Type Description
    T

    Returns the referenced entry that has been cast to the specified type. If the entry cannot be cast, default value is returned.

    Type Parameters
    Name Description
    T

    TryGetEntry<T>(IReadOnlyEntryReference<IEntry>, out T)

    Try to cast the referenced entry to the specified type.

    Declaration
    public static bool TryGetEntry<T>(this IReadOnlyEntryReference<IEntry> source, out T result)
        where T : IEntry
    Parameters
    Type Name Description
    IReadOnlyEntryReference<IEntry> source
    T result

    The referenced entry that was cast.

    Returns
    Type Description
    Boolean

    Returns True if the referenced entry could be cast to the specified type. Otherwise, it returns False.

    Type Parameters
    Name Description
    T
    In This Article
    Back to top UniData - Data Management for Unity