protected static bool EqualOperator(ValueObject left, ValueObject right) { if (ReferenceEquals(left, null) ^ ReferenceEquals(right, null)) { return(false); } return(ReferenceEquals(left, null) || left.Equals(right)); }
protected static bool EqualOperator( ValueObject left, ValueObject right) { if (left is null ^ right is null) { return(false); } return(left?.Equals(right) != false); }