Search Results for

    Show / Hide Table of Contents

    Interface IValueParser<T>

    A parser that can convert string into T.

    Inherited Members
    IValueParser.TargetType
    Namespace: McMaster.Extensions.CommandLineUtils.Abstractions
    Assembly: McMaster.Extensions.CommandLineUtils.dll
    Syntax
    public interface IValueParser<T> : IValueParser
    Type Parameters
    Name Description
    T

    Methods

    | Improve this Doc View Source

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

    Parses the raw string value.

    Declaration
    T 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
    T

    The parsed value object.

    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • Parse(Nullable<String>, Nullable<String>, CultureInfo)
    Back to top