BindConverter.TryConvertToNullableShort Method

Definition

Attempts to convert a value to a nullable Int16.

public:
 static bool TryConvertToNullableShort(System::Object ^ obj, System::Globalization::CultureInfo ^ culture, [Runtime::InteropServices::Out] Nullable<short> % value);
public static bool TryConvertToNullableShort (object? obj, System.Globalization.CultureInfo? culture, out short? value);
static member TryConvertToNullableShort : obj * System.Globalization.CultureInfo * Nullable -> bool
Public Shared Function TryConvertToNullableShort (obj As Object, culture As CultureInfo, ByRef value As Nullable(Of Short)) As Boolean

Parameters

obj
Object

The object to convert.

culture
CultureInfo

The CultureInfo to use for conversion.

value
Nullable<Int16>

The converted value.

Returns

true if conversion is successful, otherwise false.

Applies to