A class for boolean values with possibility to check whether the value was defined or not.
More...
#include <NullableBool.h>
Inherits IEquatable< Aspose::Tasks::NullableBool >, and BoxableObjectBase.
|
| bool | get_Value () const |
| | Gets a value indicating whether current value is true or false. More...
|
| |
| void | set_Value (bool value) |
| | Sets a value indicating whether current value is true or false. More...
|
| |
| bool | get_IsDefined () const |
| | Gets a value indicating whether the value was defined; otherwise, false. More...
|
| |
| | NullableBool (bool value) |
| | Initializes a new instance of the NullableBool struct with the specified boolean value. More...
|
| |
| | NullableBool (bool value, bool isDefined) |
| | Initializes a new instance of the NullableBool struct. More...
|
| |
| bool | Equals (NullableBool other) override |
| | Returns a flag indicating whether this instance is equal to the specified instance of the NullableBool class. More...
|
| |
| bool | Equals (System::SharedPtr< System::Object > obj) override |
| | Returns a flag indicating whether this instance is equal to the specified object. More...
|
| |
| int32_t | GetHashCode () const override |
| | Returns a hash code value for the instance of the NullableBool class. More...
|
| |
| System::String | ToString () const override |
| | Returns a string that represents the current object. More...
|
| |
A class for boolean values with possibility to check whether the value was defined or not.
◆ NullableBool() [1/2]
| Aspose::Tasks::NullableBool::NullableBool |
( |
bool |
value | ) |
|
Initializes a new instance of the NullableBool struct with the specified boolean value.
- Parameters
-
| value | the specified boolean value. |
◆ NullableBool() [2/2]
| Aspose::Tasks::NullableBool::NullableBool |
( |
bool |
value, |
|
|
bool |
isDefined |
|
) |
| |
Initializes a new instance of the NullableBool struct.
- Parameters
-
| value | The current value. |
| isDefined | The value indicating whether current value is defined. |
◆ Equals() [1/2]
| bool Aspose::Tasks::NullableBool::Equals |
( |
NullableBool |
other | ) |
|
|
override |
Returns a flag indicating whether this instance is equal to the specified instance of the NullableBool class.
- Parameters
-
| other | the specified object to compare to this instance. |
- Returns
- a flag indicating whether this instance is equal to the specified instance of the NullableBool class.
◆ Equals() [2/2]
| bool Aspose::Tasks::NullableBool::Equals |
( |
System::SharedPtr< System::Object > |
obj | ) |
|
|
override |
Returns a flag indicating whether this instance is equal to the specified object.
- Parameters
-
| obj | the specified object to compare to this instance. |
- Returns
- a flag indicating whether this instance is equal to the specified object.
◆ get_IsDefined()
| bool Aspose::Tasks::NullableBool::get_IsDefined |
( |
| ) |
const |
Gets a value indicating whether the value was defined; otherwise, false.
◆ get_Value()
| bool Aspose::Tasks::NullableBool::get_Value |
( |
| ) |
const |
Gets a value indicating whether current value is true or false.
◆ GetHashCode()
| int32_t Aspose::Tasks::NullableBool::GetHashCode |
( |
| ) |
const |
|
override |
Returns a hash code value for the instance of the NullableBool class.
- Returns
- returns a hash code value for this object.
◆ set_Value()
| void Aspose::Tasks::NullableBool::set_Value |
( |
bool |
value | ) |
|
Sets a value indicating whether current value is true or false.
◆ ToString()
| System::String Aspose::Tasks::NullableBool::ToString |
( |
| ) |
const |
|
override |
Returns a string that represents the current object.
- Returns
- A string that represents the current object.