* ecore.cs (StoreFromPtr): Use TypeManager.IsEnumType instad of IsEnum
svn path=/trunk/mcs/; revision=7671
2002-09-20 Miguel de Icaza <miguel@ximian.com>
+ * ecore.cs (StoreFromPtr): Use TypeManager.IsEnumType instad of IsEnum
+
* decl.cs (FindType): Sorry about this, fixed the type lookup bug.
2002-09-19 Miguel de Icaza <miguel@ximian.com>
//
public static void StoreFromPtr (ILGenerator ig, Type type)
{
- if (type.IsEnum)
+ if (TypeManager.IsEnumType (type))
type = TypeManager.EnumToUnderlying (type);
if (type == TypeManager.int32_type || type == TypeManager.uint32_type)
ig.Emit (OpCodes.Stind_I4);