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

            Exists = s.Exists;
            Value.CopyBytes(s.Value);
        }
Exemplo n.º 2
0
        public override MutableValue Duplicate()
        {
            MutableValueStr v = new MutableValueStr();

            v.Value.CopyBytes(Value);
            v.Exists = this.Exists;
            return(v);
        }
Exemplo n.º 3
0
        public override int CompareSameType(object other)
        {
            MutableValueStr b = (MutableValueStr)other;
            int             c = Value.CompareTo(b.Value);

            if (c != 0)
            {
                return(c);
            }
            if (Exists == b.Exists)
            {
                return(0);
            }
            return(Exists ? 1 : -1);
        }
Exemplo n.º 4
0
        public override bool EqualsSameType(object other)
        {
            MutableValueStr b = (MutableValueStr)other;

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