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