Author: toshok
Date: 2007-10-06 17:59:55 -0400 (Sat, 06 Oct 2007)
New Revision: 87036
Modified:
trunk/olive/class/agclr/System.Windows/ChangeLog
trunk/olive/class/agclr/System.Windows/DependencyObject.cs
Log:
2007-10-06 Chris Toshok <[EMAIL PROTECTED]>
* DependencyObject.cs (GetAsValue): we can't use
Type.GetElementType() on enums. there might be a way to do this
check (to see if the enum is int-sized), but I couldn't figure it
out - IsAssignableFrom doesn't work. Remove the check for now,
since we break with it enabled.
Modified: trunk/olive/class/agclr/System.Windows/ChangeLog
===================================================================
--- trunk/olive/class/agclr/System.Windows/ChangeLog 2007-10-06 20:53:29 UTC
(rev 87035)
+++ trunk/olive/class/agclr/System.Windows/ChangeLog 2007-10-06 21:59:55 UTC
(rev 87036)
@@ -1,3 +1,11 @@
+2007-10-06 Chris Toshok <[EMAIL PROTECTED]>
+
+ * DependencyObject.cs (GetAsValue): we can't use
+ Type.GetElementType() on enums. there might be a way to do this
+ check (to see if the enum is int-sized), but I couldn't figure it
+ out - IsAssignableFrom doesn't work. Remove the check for now,
+ since we break with it enabled.
+
2007-10-02 Jackson Harper <[EMAIL PROTECTED]>
* DependencyObject.cs: If we are trying to use a string to set a
Modified: trunk/olive/class/agclr/System.Windows/DependencyObject.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows/DependencyObject.cs 2007-10-06
20:53:29 UTC (rev 87035)
+++ trunk/olive/class/agclr/System.Windows/DependencyObject.cs 2007-10-06
21:59:55 UTC (rev 87036)
@@ -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 &&
v.GetType ().GetElementType () == typeof (int))){
+ } else if (v is int || v.GetType ().IsEnum) {
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