public override void Copy(MutableValue source) { MutableValueStr s = (MutableValueStr)source; Exists = s.Exists; Value.CopyBytes(s.Value); }
public override MutableValue Duplicate() { MutableValueStr v = new MutableValueStr(); v.Value.CopyBytes(Value); v.Exists = this.Exists; return(v); }
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); }
public override bool EqualsSameType(object other) { MutableValueStr b = (MutableValueStr)other; return(Value.Equals(b.Value) && Exists == b.Exists); }