Dela via


BindConverter.TryConvertToFloat(Object, CultureInfo, Single) Method

Definition

Attempts to convert a value to a Single.

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

Parameters

obj
Object

The object to convert.

culture
CultureInfo

The CultureInfo to use for conversion.

value
Single

The converted value.

Returns

true if conversion is successful, otherwise false.

Applies to