Z
Zytan
I have a basic Enum:
enum MyEnum
{
Name1,
Name2,
}
And I called MyEnum.ToString(), and this crashed on a machine
running .NET 3.0, twice. But, every other time, it ran fine.
Strange. The error was System.ArgumentException:
Message = "All enums must have an underlying value__ field."
TargetSite = "System.Reflection.FieldInfo GetValueField(System.Type)"
StackTrace = "at System.Enum.GetValueField(Type type)
at System.Enum.ToString()
at ........."
Looks like I'll keep my machines running NET 2.0 for now.
Zytan
enum MyEnum
{
Name1,
Name2,
}
And I called MyEnum.ToString(), and this crashed on a machine
running .NET 3.0, twice. But, every other time, it ran fine.
Strange. The error was System.ArgumentException:
Message = "All enums must have an underlying value__ field."
TargetSite = "System.Reflection.FieldInfo GetValueField(System.Type)"
StackTrace = "at System.Enum.GetValueField(Type type)
at System.Enum.ToString()
at ........."
Looks like I'll keep my machines running NET 2.0 for now.
Zytan