public Object? ConvertToArgumentTypeInvariant(
Object? value
)
Public Function ConvertToArgumentTypeInvariant (
value As Object
) As Object
Dim instance As CommandLineArgument
Dim value As Object
Dim returnValue As Object
returnValue = instance.ConvertToArgumentTypeInvariant(value)
public:
Object^ ConvertToArgumentTypeInvariant(
Object^ value
)
If the type of value is directly assignable to ArgumentType, no conversion is done. If the value is a String, the same rules apply as for the ConvertToArgumentType(CultureInfo, String) method, using CultureInfoInvariantCulture. Other types will be converted to a string before conversion.
This method is used to convert the CommandLineArgumentAttributeDefaultValue property to the correct type, and is also used by implementations of the ArgumentValidationAttribute class to convert values when needed.
NotSupportedException | The argument's ArgumentConverter cannot convert between the type of value and the ArgumentType. |