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(Nullable<String>, Nullable<String>, CultureInfo)
Parses the raw string value.
Declaration
object? Parse(string? argName, string? value, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<System.String> | argName | The name of the argument this value will be bound to. |
System.Nullable<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.Nullable<System.Object> | The parsed value object. |