[Mono-list] Re: [Mono-patches]mcs/class/System.Windows.Forms/System.Windows.FormsCaptionButton.cs,NONE,1.1 CharacterCasing.cs,NONE,1.1CheckState.cs,NONE,1.1 DataGridParentRowsLabelStyle.cs,NONE,1.1DialogResult.cs,NONE,1.1 DockStyle.cs,NONE,1.1 DragAct

Serge serge@wildwestsoftware.com
Thu, 11 Apr 2002 13:22:25 +0300


> Try mcs/tools/EnumCheck.cs

Be warned that EnumCheck behaves incorrectly in case enum has several names
mapped on a single numerical value. It will print the first literal.
For example:
System.Xml.XPath.XPathResultType
Navigator = String (= 1)
String will be printed twice.
It is required to get both Names and Values and use the map.

Sergey


----- Original Message -----
From: "Nick Drochak" <ndrochak@gol.com>
To: "Piers Haken" <piersh@friskit.com>
Cc: "Mono mailing list" <mono-list@ximian.com>
Sent: Thursday, April 11, 2002 11:57 AM
Subject: RE: [Mono-list] Re:
[Mono-patches]mcs/class/System.Windows.Forms/System.Windows.FormsCaptionButt
on.cs,NONE,1.1 CharacterCasing.cs,NONE,1.1CheckState.cs,NONE,1.1
DataGridParentRowsLabelStyle.cs,NONE,1.1DialogResult.cs,NONE,1.1
DockStyle.cs,NONE,1.1 DragAct


> | Does anyone know how to get the value of an enum field via reflection?
> |
>
> Try mcs/tools/EnumCheck.cs
>
> Nick D.
>
> _______________________________________________
> Mono-list maillist  -  Mono-list@ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>