コード例 #1
0
ファイル: ImpromptuForwarder.cs プロジェクト: caoxk/coapp
 /// <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));
 }
コード例 #2
0
ファイル: ImpromptuForwarder.cs プロジェクト: virmitio/coapp
 /// <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);
 }