dotgnu-pnet
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Pnet-developers] Rectangle.Union


From: Rhys Weatherley
Subject: Re: [Pnet-developers] Rectangle.Union
Date: Fri, 26 Aug 2005 14:37:42 +1000
User-agent: KMail/1.4.3

On Thursday 25 August 2005 06:31 pm, Miroslaw Dobrzanski-Neumann wrote:

> From the MSDN (http://msdn.microsoft.com)
> Rectangle.Empty Field
> Represents a Rectangle structure with its properties left uninitialized.
>
> BTW. What does it mean uninitialized? On .NET everything is initialized.
> When one however says uninitialized it should read as invalid or undefined.
>
> So, you mustn't make computation with undefined. It's obvious a bug. So
> another question. Should PNET and other implementations replicate a Bug?

In this case, I think the "bug" is in the MSDN documentation, not in the MS 
implementation.  An undefined rectangle is indistinguishable from the 
rectangle (0, 0, 0, 0), but the documentation doesn't make that clear.  You 
have to sort of "just know it" from the properties of C# structs.

Cheers,

Rhys.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]