Modelled after Nullable
Inherits from IComparable
Name | |
---|---|
NullableInt(int value) Constructor |
|
int | GetValueOrDefault() Get the value |
int | GetValueOrDefault(int 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 NullableInt(int value) Conversion from int |
static | operator int(NullableInt value) Conversion to int |
Name | |
---|---|
bool | HasValue Return TRUE if object has a value |
int | Value Return the value |
NullableInt(
int value
)
Constructor
int GetValueOrDefault()
Get the value
int GetValueOrDefault(
int 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 NullableInt(
int value
)
Conversion from int
static explicit static operator int(
NullableInt value
)
Conversion to int
bool HasValue;
Return TRUE if object has a value
int Value;
Return the value
Updated on 2023-03-31 at 15:29:33 +0100