NullableBool Structure |
Namespace: Aspose.Tasks
The NullableBool type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | NullableBool(Boolean) |
Initializes a new instance of the NullableBool struct with the specified boolean value.
|
![]() ![]() | NullableBool(Boolean, Boolean) |
Initializes a new instance of the NullableBool struct.
|
Name | Description | |
---|---|---|
![]() ![]() | IsDefined |
Gets a value indicating whether the value was defined; otherwise, false.
|
![]() ![]() | Value |
Gets or sets a value indicating whether current value is true or false.
|
Name | Description | |
---|---|---|
![]() ![]() | Equals(Object) |
Returns a flag indicating whether this instance is equal to the specified object.
(Overrides ValueTypeEquals(Object).) |
![]() ![]() | Equals(NullableBool) |
Returns a flag indicating whether this instance is equal to the specified instance of the NullableBool class.
|
![]() ![]() | GetHashCode |
Returns a hash code value for the instance of the NullableBool class.
(Overrides ValueTypeGetHashCode.) |
![]() | GetType | (Inherited from Object.) |
![]() ![]() | ToString |
Returns a string that represents the current object.
(Overrides ValueTypeToString.) |
Name | Description | |
---|---|---|
![]() ![]() ![]() | Equality |
Returns a value indicating whether this instance is equal to a specified object.
|
![]() ![]() ![]() | (Boolean to NullableBool) |
Implicitly converts boolean value to the NullableBool instance.
|
![]() ![]() ![]() | (NullableBool to Boolean) | |
![]() ![]() ![]() | Inequality |
Returns a value indicating whether this instance is not equal to a specified object.
|
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); // ...