logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Interface IStringArgumentResolver

    Resolves a string argument to a requested object type.It can be a pure conversion or a resolution (repos, assets, etc).

    Namespace: Serenity.Tasking.Application.Interfaces
    Assembly: Serenity.Global.Application.dll
    Syntax
    public interface IStringArgumentResolver

    Methods

    TryResolve(string, Type, ITaskServices, out object)

    Tries to resolve a string argument to a requested object type.

    Declaration
    bool TryResolve(string raw, Type targetType, ITaskServices services, out object value)
    Parameters
    Type Name Description
    string raw

    The raw string argument.

    Type targetType

    The target type to resolve to.

    ITaskServices services

    The task services providing context for resolution (e.g., IAssetLocator).

    object value

    The resolved value if successful; otherwise, null.

    Returns
    Type Description
    bool

    True if the resolution was successful; otherwise, false.

    In this article
    © 2026 Serenity. All Rights Reserved