コード例 #1
0
 public bool Equals(PromiseNeedle <T> other)
 {
     if (other is null)
     {
         return(false);
     }
     return(_target.Equals(other._target));
 }
コード例 #2
0
 private static bool NotEqualsExtracted(PromiseNeedle <T> left, PromiseNeedle <T> right)
 {
     if (ReferenceEquals(left, null))
     {
         return(!ReferenceEquals(right, null));
     }
     return(!left.Equals(right));
 }
コード例 #3
0
 public ReadOnlyPromiseNeedle(PromiseNeedle <T> promised)
     : base(promised)
 {
     _promised = promised;
 }
コード例 #4
0
 public bool Equals(PromiseNeedle <T> other)
 {
     return(EqualsExtracted(this, other));
 }
コード例 #5
0
ファイル: PromiseNeedle.cs プロジェクト: erisonliang/Theraot
 public bool Equals(PromiseNeedle <T> other)
 {
     return(!(other is null) && _target.Equals(other._target));
 }