Brunet.Messaging.UnicastSender.Equals C# (CSharp) Метод

Equals() публичный Метод

ISender objects need to have semantically meaningful Equals.
public Equals ( object o ) : bool
o object The object to compare to.
Результат bool
    public override bool Equals(object o) {
      UnicastSender other = o as UnicastSender;
      if( other == null ) {
        return false;
      }
      else if( Object.ReferenceEquals(this, o) ) {
        return true;
      }
      else {
        return (_s.Equals( other._s ) && EndPoint.Equals( other.EndPoint ));
      }
    }