public override void Copy(MutableValue source) { MutableValueInt32 s = (MutableValueInt32)source; Value = s.Value; Exists = s.Exists; }
public override int CompareSameType(object other) { MutableValueInt32 b = (MutableValueInt32)other; int ai = Value; int bi = b.Value; if (ai < bi) { return(-1); } else if (ai > bi) { return(1); } if (Exists == b.Exists) { return(0); } return(Exists ? 1 : -1); }
public override bool EqualsSameType(object other) { MutableValueInt32 b = (MutableValueInt32)other; return(Value == b.Value && Exists == b.Exists); }