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
Methods
Parse(string?, string?, CultureInfo)
Parses the raw string value.
object? Parse(string? argName, string? value, CultureInfo culture)
Parameters
argNamestringThe name of the argument this value will be bound to.
valuestringThe raw string value to parse.
cultureCultureInfoThe culture that should be used to parse values.
Returns
- object
The parsed value object.