System.Drawing.Color has a private field int state which makes equality a bit more tricky than one would expect from a struct.
Anyone know what on earth it’s for? Who, what and why sets and reads it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As far as i understand, it is compared to theese values:
http://reflector.webtropy.com/default.aspx/Net/Net/3@5@50727@3053/DEVDIV/depot/DevDiv/releases/whidbey/netfxsp/ndp/fx/src/CommonUI/System/Drawing/Color@cs/1/Color@cs
So my shot is that its used to dertermine if its a “System Color” or a user defined from e.g. ARGB values.