Improve the handling of null values.
-
For leaf types such as
string
andSystem.Uri
, if one of the values is null and the other isn't, then the null value is printed asXXX is null
, and the non-null value is printed asXXX = <...>
as before. -
For non-leaf types:
- If both values are null, then they're considered equal and do not appear in the diff.
- If one of the values is null, then:
- the
Diff()
method returns a new union caseNullness
containing both values. - when printed, the null value is printed as
XXX is null
and the non-null value is printed asXXX is not null
.
- the