示例#1
0
 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);
 }
示例#2
0
 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);
 }