BindConverter.TryConvertToNullableFloat 方法

定义

尝试将值转换为可为空的 Single

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

参数

obj
Object

要转换的对象。

culture
CultureInfo

CultureInfo要用于转换的 。

value
Nullable<Single>

转换后的值。

返回

true 如果转换成功,则为 ;否则为 false

适用于