CommandLineArgumentConvertToArgumentType Method |
Converts the specified string to the argument type, as specified in the
ArgumentType property.
Namespace:
Ookii.CommandLine
Assembly:
Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 2.3.0
Syntaxpublic Object ConvertToArgumentType(
CultureInfo culture,
string argument
)
Public Function ConvertToArgumentType (
culture As CultureInfo,
argument As String
) As Object
Dim instance As CommandLineArgument
Dim culture As CultureInfo
Dim argument As String
Dim returnValue As Object
returnValue = instance.ConvertToArgumentType(culture,
argument)
public:
Object^ ConvertToArgumentType(
CultureInfo^ culture,
String^ argument
)
Parameters
- culture
- Type: System.GlobalizationCultureInfo
The culture to use to convert the argument. - argument
- Type: SystemString
The string to convert.
Return Value
Type:
ObjectThe argument, converted to the type specified by the
ArgumentType property.
Exceptions
Remarks
See Also