Ejemplo n.º 1
0
        public override void Copy(MutableValue source)
        {
            MutableValueInt32 s = (MutableValueInt32)source;

            Value  = s.Value;
            Exists = s.Exists;
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        public override bool EqualsSameType(object other)
        {
            MutableValueInt32 b = (MutableValueInt32)other;

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