Table of Contents

Interface IValueParser<T>

Namespace
McMaster.Extensions.CommandLineUtils.Abstractions
Assembly
McMaster.Extensions.CommandLineUtils.dll

A parser that can convert string into T.

public interface IValueParser<out T> : IValueParser

Type Parameters

T
Inherited Members

Methods

Parse(string?, string?, CultureInfo)

Parses the raw string value.

T Parse(string? argName, string? value, CultureInfo culture)

Parameters

argName string

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

value string

The raw string value to parse.

culture CultureInfo

The culture that should be used to parse values.

Returns

T

The parsed value object.