Modelled after Nullable
Inherits from IComparable
| Name | |
|---|---|
| NullableBool(bool value) Constructor |
|
| bool | GetValueOrDefault() Get the value |
| bool | GetValueOrDefault(bool defaultValue) Get value, or default if value is not defined |
| override bool | Equals(object other) Test for equality |
| int | CompareTo(object obj) Compare another object |
| override int | GetHashCode() Return the hashcode |
| override string | ToString() Stringify the value |
| implicit | operator NullableBool(bool value) Conversion from bool |
| static | operator bool(NullableBool value) Conversion to bool |
| Name | |
|---|---|
| bool | HasValue Return TRUE if object has a value |
| bool | Value Return the value |
NullableBool(
bool value
)
Constructor
bool GetValueOrDefault()
Get the value
bool GetValueOrDefault(
bool defaultValue
)
Get value, or default if value is not defined
override bool Equals(
object other
)
Test for equality
Parameters:
Return: TRUE if other object is equal to this one, FALSE otherwise
int CompareTo(
object obj
)
Compare another object
Parameters:
Return: If both objects are the same, returns zero. If this object has a value but the other object does not, returns +1. If this object does not have a value, but the other object does have a value, returns -1. If both objects have a value, returns an indication of their relative values /returns>
override int GetHashCode()
Return the hashcode
override string ToString()
Stringify the value
static implicit operator NullableBool(
bool value
)
Conversion from bool
static explicit static operator bool(
NullableBool value
)
Conversion to bool
bool HasValue;
Return TRUE if object has a value
bool Value;
Return the value
Updated on 2023-03-31 at 15:29:33 +0100