Primitively Primitively
Primitively Primitively
DocFX + Singulink = ♥

Search Results for

    Interface IPrimitiveRepository

    This interface provides methods for retrieving metadata about Primitively types.

    Namespace: Primitively
    Assembly: Primitively.Abstractions.dll
    Syntax
    public interface IPrimitiveRepository

    Methods

    GetType(Type)

    Retrieves the metadata for a specific Primitively type.

    Declaration
    PrimitiveInfo GetType(Type type)
    Parameters
    Type Name Description
    Type type

    The .NET type of the Primitively type.

    Returns
    Type Description
    PrimitiveInfo

    The metadata for the Primitively type, or null if the type is not a Primitively type.

    GetTypes()

    Retrieves the metadata for all Primitively types.

    Declaration
    IReadOnlyCollection<PrimitiveInfo> GetTypes()
    Returns
    Type Description
    IReadOnlyCollection<PrimitiveInfo>

    A collection of the metadata for all Primitively types.

    GetTypes<T>()

    Retrieves the metadata for all Primitively types of a specific kind.

    Declaration
    IReadOnlyCollection<T> GetTypes<T>() where T : PrimitiveInfo
    Returns
    Type Description
    IReadOnlyCollection<T>

    A collection of the metadata for all Primitively types of the specified kind.

    Type Parameters
    Name Description
    T

    The type of the metadata to retrieve. This must be a subclass of PrimitiveInfo.

    TryGetType(Type, out PrimitiveInfo?)

    Attempts to retrieve the metadata for a specific Primitively type.

    Declaration
    bool TryGetType(Type type, out PrimitiveInfo? result)
    Parameters
    Type Name Description
    Type type

    The .NET type of the Primitively type.

    PrimitiveInfo result

    When this method returns, contains the metadata for the Primitively type, if the operation succeeded, or null if it did not.

    Returns
    Type Description
    bool

    true if the operation succeeded and the type is a Primitively type; otherwise, false.

    © Electronic Hands. All rights reserved.