Re: [Mono-dev] [PATCH] Minor fix for Enum.Format

2006-10-07 Thread Gonzalo Paniagua Javier
On Sat, 2006-10-07 at 18:01 +0200, Gert Driesen wrote: > Hi, > > The attached patch reports a different exception depending on whether > the type of the passed in value is an Enum or not. This is clearly > documented in the .NET Framework SDK and verified by improved unit tests > (see patch). > >

[Mono-dev] [PATCH] Minor fix for Enum.Format

2006-10-07 Thread Gert Driesen
Hi, The attached patch reports a different exception depending on whether the type of the passed in value is an Enum or not. This is clearly documented in the .NET Framework SDK and verified by improved unit tests (see patch). The patch also avoids looking up the underlying type of enum twice, wh