NullableBool  Conversion (NullableBool to Boolean)

Implicitly returns a boolean value.

Namespace:  Aspose.Tasks
Assembly:  Aspose.Tasks (in Aspose.Tasks.dll) Version: 21.5
Syntax
public static implicit operator bool (
	NullableBool val
)

Parameters

val
Type: Aspose.TasksNullableBool
The value to convert.

Return Value

Type: Boolean
a boolean value.
Examples
Shows how to compare <see cref="Aspose.Tasks.NullableBool" /> instances.
var bool1 = new NullableBool(true);
var bool2 = new NullableBool(true, false);

// the equality of bools is checked against to 'IsDefined' and 'Value' properties.
Console.WriteLine("Nullable Bool 1: " + bool1.ToString());
Console.WriteLine("Nullable Bool 2: " + bool2.ToString());
Console.WriteLine("Are bools equal: " + bool1.Equals(bool2));
See Also