NullableBool.Value
Contents
[
Hide
]NullableBool.Value property
Gets or sets a value indicating whether current value is true or false.
public bool Value { get; set; }
Examples
Shows how to work with <see cref=“NullableBool” /> class.
var project = new Project();
// lets check where the <see cref="Aspose.Tasks.NullableBool" /> class is used
// the main advantage of <see cref="Aspose.Tasks.NullableBool" /> that
// one can set it as undefined through constructing
var actualsInSync = new NullableBool(false, false);
Console.WriteLine("'ActualsInSync' Value: " + actualsInSync.Value);
Console.WriteLine("'ActualsInSync' Is Defined: " + actualsInSync.IsDefined);
// ...
// use nullable bool instance
project.Set(Prj.ActualsInSync, actualsInSync);
// ...
var honorConstraints = new NullableBool(true);
Console.WriteLine("'HonorConstraints' ToString: " + honorConstraints.ToString());
// ...
// use nullable bool instance
project.Set(Prj.HonorConstraints, honorConstraints);
// ...
See Also
- struct NullableBool
- namespace Aspose.Tasks
- assembly Aspose.Tasks