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

Gert Driesen gert.driesen at telenet.be
Sat Oct 7 12:01:52 EDT 2006


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, when
the format specifier is "D" or "d".

Let me know if it's ok to commit.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: enum.patch
Type: text/x-patch
Size: 7649 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20061007/dff6b287/attachment.bin 

More information about the Mono-devel-list mailing list