dotnet / dotnet/dotnet-api-docs

Documentation is inconsistent regarding the implementation.

Open
#10,075 1 comment 0 reactions 0 assignees View on GitHub
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

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.