Re: Color data type
Stuart Laughlin <[email protected]>
| Newsgroups | gmane.comp.windows.devel.dotnet.winforms |
|---|---|
| Message-ID | <[email protected]> |
On 5/1/07, Peter Osucha <[email protected]> wrote: > > So it seems that the Color data type is a value type (which surprises > me). > I'm surprised that it surprises you. :) I think Color is a perfect example of a value type. Red is red, after all, and there is no sense in differentiating between 'this red' (R:255 G:0 B:0) and 'that red' (R:255 G:0 B:0). In other words, the value of a color is determined by its RGB values, and if color A and color B have the same RGB values then they are indeed the same color (i.e. equal), regardless of where those RGB values are stored in memory. --Stuart