Compartir a través de


BindConverter.TryConvertToNullableDecimal Método

Definición

Intenta convertir un valor en un que acepta Decimalvalores NULL.

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

Parámetros

obj
Object

Objeto que se va a convertir.

culture
CultureInfo

que CultureInfo se va a usar para la conversión.

value
Nullable<Decimal>

El valor convertido.

Devoluciones

true es si la conversión es correcta; de lo contrario false, es .

Se aplica a