BindConverter.TryConvertToDouble(Object, CultureInfo, Double) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Attempts to convert a value to a Double.
public:
static bool TryConvertToDouble(System::Object ^ obj, System::Globalization::CultureInfo ^ culture, [Runtime::InteropServices::Out] double % value);
public static bool TryConvertToDouble (object obj, System.Globalization.CultureInfo culture, out double value);
public static bool TryConvertToDouble (object? obj, System.Globalization.CultureInfo? culture, out double value);
static member TryConvertToDouble : obj * System.Globalization.CultureInfo * double -> bool
Public Shared Function TryConvertToDouble (obj As Object, culture As CultureInfo, ByRef value As Double) As Boolean
Parameters
- obj
- Object
The object to convert.
- culture
- CultureInfo
The CultureInfo to use for conversion.
- value
- Double
The converted value.
Returns
true
if conversion is successful, otherwise false
.