public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj.GetType() != typeof(Selection)) { return(false); } Mono.TextEditor.Selection other = (Mono.TextEditor.Selection)obj; return(Anchor == other.Anchor && Lead == other.Lead && SelectionMode == other.SelectionMode); }
public override bool Equals(object obj) { if (obj == null) { return(false); } if (ReferenceEquals(this, obj)) { return(true); } if (obj.GetType() != typeof(Selection)) { return(false); } Mono.TextEditor.Selection other = (Mono.TextEditor.Selection)obj; return(Anchor == other.Anchor && Lead == other.Lead); }