public override Object? Convert(
ReadOnlySpan<char> value,
CultureInfo culture,
CommandLineArgument argument
)
Public Overrides Function Convert (
value As ReadOnlySpan(Of Char),
culture As CultureInfo,
argument As CommandLineArgument
) As Object
Dim instance As NullableConverter
Dim value As ReadOnlySpan(Of Char)
Dim culture As CultureInfo
Dim argument As CommandLineArgument
Dim returnValue As Object
returnValue = instance.Convert(value,
culture, argument)
public:
virtual Object^ Convert(
ReadOnlySpan<wchar_t> value,
CultureInfo^ culture,
CommandLineArgument^ argument
) override
The default implementation of this method will allocate a string and call Convert(String, CultureInfo, CommandLineArgument). Override this method if a direct conversion from a ReadOnlySpanT is possible for the target type.
ArgumentNullException | culture or argument is . |
FormatException | The value was not in a correct format for the target type. |
OverflowException | The value was out of range for the target type. |
CommandLineArgumentException | The value was not in a correct format for the target type. Unlike FormatException and OverflowException, a CommandLineArgumentException thrown by this method will be passed down to the user unmodified. |