BindConverter.TryConvertToDecimal(Object, CultureInfo, Decimal) Method

Definition

Attempts to convert a value to a Decimal.

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

Parameters

obj
Object

The object to convert.

culture
CultureInfo

The CultureInfo to use for conversion.

value
Decimal

The converted value.

Returns

true if conversion is successful, otherwise false.

Applies to