Classes Files

Wombat::NullableLong

Modelled after Nullable in C# 2.0

Inherits from IComparable

Public Functions

  Name
  NullableLong(long value)
Constructor
long GetValueOrDefault()
Get the value
long GetValueOrDefault(long defaultValue)
Get value, or default if value is not defined
override bool Equals(object other)
Return TRUE if other object is equal to this one
int CompareTo(object obj)
Compare another object. If both objects are the same, then return zero. If this object has a value but the other object does not, return +1 If this object does not have a value, but the other object does have a value, return -1. If both objects have a value, the return value will be an indication of their relative values
override int GetHashCode()
Return the hashcode
override string ToString()
Stringify the value
implicit operator NullableLong(long value)
For implicit type conversions
static operator long(NullableLong value)
For explicit type conversions

Public Properties

  Name
bool HasValue
Return TRUE if object has a value
long Value
Return the value

Public Functions Documentation

function NullableLong

NullableLong(
    long value
)

Constructor

function GetValueOrDefault

long GetValueOrDefault()

Get the value

Get the value

function GetValueOrDefault

long GetValueOrDefault(
    long defaultValue
)

Get value, or default if value is not defined

function Equals

override bool Equals(
    object other
)

Return TRUE if other object is equal to this one

function CompareTo

int CompareTo(
    object obj
)

Compare another object. If both objects are the same, then return zero. If this object has a value but the other object does not, return +1 If this object does not have a value, but the other object does have a value, return -1. If both objects have a value, the return value will be an indication of their relative values

function GetHashCode

override int GetHashCode()

Return the hashcode

function ToString

override string ToString()

Stringify the value

function operator NullableLong

static implicit operator NullableLong(
    long value
)

For implicit type conversions

function operator long

static explicit static operator long(
    NullableLong value
)

For explicit type conversions

Public Property Documentation

property HasValue

bool HasValue;

Return TRUE if object has a value

property Value

long Value;

Return the value


Updated on 2023-03-31 at 15:29:33 +0100