[Mono-devel-list] Bugs in Enum conversion using TypeDescriptor and EnumConverter
duncan at ximian.com
Sun Sep 14 01:57:32 EDT 2003
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:
Should I go close the bug, or would you prefer to close them yourself?
More information about the Mono-devel-list