Search Results for

    Show / Hide Table of Contents

    Interface IValueParser

    A parser that can convert string into an object.

    Namespace: McMaster.Extensions.CommandLineUtils.Abstractions
    Assembly: McMaster.Extensions.CommandLineUtils.dll
    Syntax
    public interface IValueParser

    Properties

    | Improve this Doc View Source

    TargetType

    Gets the Type that this value parser is defined for.

    Declaration
    Type TargetType { get; }
    Property Value
    Type Description
    System.Type

    Methods

    | Improve this Doc View Source

    Parse(Nullable<String>, Nullable<String>, CultureInfo)

    Parses the raw string value.

    Declaration
    object? Parse(string? argName, string? value, CultureInfo culture)
    Parameters
    Type Name Description
    System.Nullable<System.String> argName

    The name of the argument this value will be bound to.

    System.Nullable<System.String> value

    The raw string value to parse.

    System.Globalization.CultureInfo culture

    The culture that should be used to parse values.

    Returns
    Type Description
    System.Nullable<System.Object>

    The parsed value object.

    • Improve this Doc
    • View Source
    In This Article
    Back to top