[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System Enum.cs, 1.14, 1.15
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System Enum.cs, 1.14, 1.15 |
Date: |
Tue, 19 Aug 2003 23:47:52 -0400 |
Update of /cvsroot/dotgnu-pnet/pnetlib/runtime/System
In directory subversions:/tmp/cvs-serv21492/runtime/System
Modified Files:
Enum.cs
Log Message:
Implement Enum.GetUnderlyingType for profiles that don't have reflection.
Index: Enum.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/runtime/System/Enum.cs,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -r1.14 -r1.15
*** Enum.cs 21 Jul 2003 18:14:38 -0000 1.14
--- Enum.cs 20 Aug 2003 03:47:50 -0000 1.15
***************
*** 275,286 ****
}
}
-
- // We have no idea what the type is. Perhaps
- // the enumerated type is malformed in some way.
- throw new
ArgumentException(_("Arg_MustBeEnum"));
- #else
- // TODO: use an internalcall to get this
information
- throw new
ArgumentException(_("Arg_MustBeEnum"));
#endif
}
--- 275,282 ----
}
}
#endif
+
+ // Use a non-reflection trick to get the type.
+ return (ToObject(enumType, 0)).GetType();
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnetlib/runtime/System Enum.cs, 1.14, 1.15,
Rhys Weatherley <address@hidden> <=