public override bool Equals(object o) { DataString x = o as DataString; if (x == null) { return(false); } bool equals = this.value == x.value; return(equals); }
public int CompareTo(object obj) { if (obj == null) { return(1); } DataString x = obj as DataString; if (x != null) { return(this.value.CompareTo(x.value)); } else { throw new ArgumentException("Object is not a DataString"); } }