[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 12:18:41 +0300


> Does anyone know how to get the value of an enum field via reflection?

See mcs/tools/verifier.cs, look for EnumStuff class and its constructor,
enumTable populated with mapping of literals to values.
Verifier compares values of enums, underlying type and [Flags] attr (which
is also very important).

Sergey