2
Vote

Tuple.Equals, == and != operators should check for null.

description

According to the microsoft guidelines, x.Equals(null) is false, and should not throw an exception. It is also true for x == null, null == x and so forth. The current implementation does not check for nullity, and throws on null values in equality comparisons. The patch attached corrects this problem and adds additional test cases for null values.

file attachments

comments