Table of Contents

Interface IValueParser

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

A parser that can convert string into an object.

public interface IValueParser

Properties

TargetType

Gets the Type that this value parser is defined for.

Type TargetType { get; }

Property Value

Type

Methods

Parse(string?, string?, CultureInfo)

Parses the raw string value.

object? 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

object

The parsed value object.