Author: toshok
Date: 2007-10-06 18:11:50 -0400 (Sat, 06 Oct 2007)
New Revision: 87037
Modified:
trunk/olive/class/agclr/System.Windows/DependencyObject.cs
Log:
yay jb. use Enum.GetUnderlyingType instead of Type.GetElementType
Modified: trunk/olive/class/agclr/System.Windows/DependencyObject.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows/DependencyObject.cs 2007-10-06
21:59:55 UTC (rev 87036)
+++ trunk/olive/class/agclr/System.Windows/DependencyObject.cs 2007-10-06
22:11:50 UTC (rev 87037)
@@ -517,7 +517,7 @@
value.k = dov.GetKind ();
value.u.p = dov_native;
NativeMethods.base_ref (dov_native);
- } else if (v is int || v.GetType ().IsEnum) {
+ } else if (v is int || (v.GetType ().IsEnum &&
Enum.GetUnderlyingType (v.GetType()) == typeof(int))) {
value.k = Kind.INT32;
value.u.i32 = (int) v;
} else if (v is bool){
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches