[Mono-devel-list] Bugs in Enum conversion using TypeDescriptor and EnumConverter

Duncan Mak duncan at ximian.com
Sun Sep 14 01:57:32 EDT 2003


Hey Jörg!

On Wed, 2003-09-10 at 11:23, Jörg Rosenkranz wrote:
> I have found two bugs in System.ComponentModel:
> 
> 1) TypeDescriptor.GetConverter does not work for enumeration 
>    types because EnumConverter does not have a default constructor.
> 
>    Fix: I have changed the special handling for enumeration types.
> 
> 2) EnumConverter.ConvertFrom fails with InvalidCastException because 
>    the enumeration value is casted to long.
> 
>    Fix: Removed the special handling for multiple values. This is done
>    in Enum.Parse already.
> 
> I have filed a bug for these two:
> http://bugzilla.ximian.com/show_bug.cgi?id=48351
> 

Thanks!

Patches committed.

Should I go close the bug, or would you prefer to close them yourself?

Duncan.




More information about the Mono-devel-list mailing list