[Mono-dev] Patch for System.Drawing.ColorConverter.cs

Gert Driesen gert.driesen at telenet.be
Mon Nov 14 06:06:59 EST 2005


> ----- Original Message ----- 
> From: "Vladimir Krasnov" <vladimirk at mainsoft.com>
> To: <mono-devel-list at lists.ximian.com>
> Sent: Monday, November 14, 2005 11:57 AM
> Subject: [Mono-dev] Patch for System.Drawing.ColorConverter.cs
> 

> Hello all,
>  
> I've found that System.Drawing.ColorConverter cannot convert from
> three-digit RGB notation.
> In this notation a '#' sign followed by three hexadecimal characters for
> example #abc, 
> this should be converted to #aabbcc, by replicating every character.
>  
> Attached patch for System.Drawing.ColorConverter.cs.
> If no one objects I'll commit.

One advise: add unit tests that cover this change.

Regards,

Gert



More information about the Mono-devel-list mailing list