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
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
- T
The parsed value object.