dotnet / dotnet/dotnet-api-docs

Confusing mention on comparison with null

Open
#7,188 1 comment 0 reactions 0 assignees View on GitHub
area-System.DateTime Pri3 untriaged
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

Description

https://github.com/dotnet/dotnet-api-docs/blob/2be79ed73506359ea078b0f4dcac8523968d57f8/xml/System/DateTimeOffset.xml#L1830

If it were later (or greater), then I would also expect the comparison operators to match this.
But, of course, every comparision operator results in `false` if one of the operands is `null` and the other is not:
`a < b` => false
`a >= b` => false
`a == b` => false

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.