Exemplo n.º 1
0
 /// <summary>
 ///   Equals the specified other.
 /// </summary>
 /// <param name="other"> The other. </param>
 /// <returns> </returns>
 public bool Equals(ImpromptuForwarder other)
 {
     if (ReferenceEquals(null, other))
     {
         return(ReferenceEquals(null, CallTarget));
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(Equals(other.CallTarget, CallTarget));
 }
Exemplo n.º 2
0
 /// <summary>
 ///   Equals the specified other.
 /// </summary>
 /// <param name="other"> The other. </param>
 /// <returns> </returns>
 public bool Equals(ImpromptuForwarder other)
 {
     if (ReferenceEquals(null, other)) {
         return ReferenceEquals(null, CallTarget);
     }
     if (ReferenceEquals(this, other)) {
         return true;
     }
     return Equals(other.CallTarget, CallTarget);
 }