Share via


BindConverter.TryConvertToNullableDouble Method

Definition

Attempts to convert a value to a nullable Double.

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

Parameters

obj
Object

The object to convert.

culture
CultureInfo

The CultureInfo to use for conversion.

value
Nullable<Double>

The converted value.

Returns

true if conversion is successful, otherwise false.

Applies to