Share via


BindConverter.TryConvertToNullableBool Method

Definition

Attempts to convert a value to a nullable Boolean.

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

Parameters

obj
Object

The object to convert.

culture
CultureInfo

The CultureInfo to use for conversion.

value
Nullable<Boolean>

The converted value.

Returns

true if conversion is successful, otherwise false.

Applies to