2 using System
.Collections
.Generic
;
4 namespace Mono
.Debugger
7 * Represents an enum value in the debuggee
9 public class EnumMirror
: StructMirror
{
11 internal EnumMirror (VirtualMachine vm
, TypeMirror type
, Value
[] fields
) : base (vm
, type
, fields
) {
16 return ((PrimitiveValue
)Fields
[0]).Value
;
19 SetField (0, vm
.CreateValue (value));
23 public string StringValue
{
25 foreach (FieldInfoMirror f
in Type
.GetFields ()) {
27 object v
= (Type
.GetValue (f
) as EnumMirror
).Value
;
28 if (f
.IsStatic
&& v
.Equals (Value
))
32 return Value
.ToString ();