private static bool NotEqualsExtracted(ReadOnlyPromiseNeedle <T> left, ReadOnlyPromiseNeedle <T> right) { if (left == null) { return(right != null); } return(!left.Equals(right)); }
private static bool EqualsExtracted(ReadOnlyPromiseNeedle <T> left, ReadOnlyPromiseNeedle <T> right) { if (ReferenceEquals(left, null)) { return(ReferenceEquals(right, null)); } return(left.Equals(right)); }
public bool Equals(ReadOnlyPromiseNeedle <T> other) { return(EqualsExtracted(this, other)); }