Share via


BindConverter.TryConvertToNullableDecimal Method

Definition

Attempts to convert a value to a nullable Decimal.

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

Parameters

obj
Object

The object to convert.

culture
CultureInfo

The CultureInfo to use for conversion.

value
Nullable<Decimal>

The converted value.

Returns

true if conversion is successful, otherwise false.

Applies to