Interface IValueParser
A parser that can convert string into an object.
Namespace: McMaster.Extensions.CommandLineUtils.Abstractions
Assembly: McMaster.Extensions.CommandLineUtils.dll
Syntax
public interface IValueParser
Properties
| Improve this Doc View SourceTargetType
Gets the Type that this value parser is defined for.
Declaration
Type TargetType { get; }
Property Value
Type | Description |
---|---|
System.Type |
Methods
| Improve this Doc View SourceParse(String, String, CultureInfo)
Parses the raw string value.
Declaration
object Parse(string argName, string value, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.String | argName | The name of the argument this value will be bound to. |
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 |
---|---|
System.Object | The parsed value object. |