public override bool Equals(object obj) { TextSample other = obj as TextSample; return other != null && Text == other.Text; }