Beispiel #1
0
        public override void Copy(MutableValue source)
        {
            MutableValueInt64 s = (MutableValueInt64)source;

            Exists = s.Exists;
            Value  = s.Value;
        }
Beispiel #2
0
        public override int CompareSameType(object other)
        {
            MutableValueInt64 b = (MutableValueInt64)other;
            long bv             = b.Value;

            if (Value < bv)
            {
                return(-1);
            }
            if (Value > bv)
            {
                return(1);
            }
            if (Exists == b.Exists)
            {
                return(0);
            }
            return(Exists ? 1 : -1);
        }
Beispiel #3
0
        public override bool EqualsSameType(object other)
        {
            MutableValueInt64 b = (MutableValueInt64)other;

            return(Value == b.Value && Exists == b.Exists);
        }