NullableTypes Class Library

NullConvert.ToNullableBoolean Method (Boolean, Boolean)

Converts the specified Boolean value whose null value is simulated using a a conventional Boolean value to an equivalent NullableBoolean.

[Visual Basic]
Overloads Public Shared Function ToNullableBoolean( _
   ByVal x As Boolean, _
   ByVal conventionalNullValue As Boolean _
) As NullableBoolean
public static NullableBoolean ToNullableBoolean(
   bool x,
   bool conventionalNullValue


The Boolean value to convert.
The Boolean value that conventionally represent the null value.

Return Value

Null if x is equals to conventionalNullValue otherwise a NullableBoolean constructed from x.

See Also

NullConvert Class | NullableTypes.HelperFunctions Namespace | NullConvert.ToNullableBoolean Overload List