dotnet / dotnet/dotnet-api-docs
Documentation is inconsistent regarding the implementation.
Open
area-System.Drawing
Pri3
untriaged
- Dominant language
- C#
- Stars
- 949
- Forks
- 1.7k
- Avg merge
- 3d 27m
- Merged PRs (30d)
- 49
Description
The IsEmpty implementation tests the Width and Height properties for 0 or negative values.
The documentation only states about equality to 0.
The XML doc is inconsistent as well.
See [public readonly bool IsEmpty => (Width <= 0) || (Height <= 0);](https://github.com/dotnet/runtime/blob/5535e31a712343a63f5d7d796cd874e563e5ac14/src/libraries/System.Drawing.Primitives/src/System/Drawing/RectangleF.cs#L183C41-L183C70)
Contributor guide
Assessment
This issue has not been assessed yet.