2007-11-12 Atsushi Enomoto <atsushi@ximian.com>
authorAtsushi Eno <atsushieno@gmail.com>
Mon, 12 Nov 2007 09:40:14 +0000 (09:40 -0000)
committerAtsushi Eno <atsushieno@gmail.com>
Mon, 12 Nov 2007 09:40:14 +0000 (09:40 -0000)
* PropertyDescriptor.cs : implement GetValueChangedHandler().
* ToolboxItemFilterAttribute.cs : implement ToString().

svn path=/trunk/mcs/; revision=89453

mcs/class/System/System.ComponentModel/ChangeLog
mcs/class/System/System.ComponentModel/PropertyDescriptor.cs
mcs/class/System/System.ComponentModel/ToolboxItemFilterAttribute.cs

index e8ba5e1e6328037a7a209944738b40a8c2c1ee34..841ce08a0b33c950552821b41c5e932079956102 100644 (file)
@@ -1,3 +1,8 @@
+2007-11-12  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * PropertyDescriptor.cs : implement GetValueChangedHandler().
+       * ToolboxItemFilterAttribute.cs : implement ToString().
+
 2007-11-03  Gert Driesen  <drieseng@users.sourceforge.net>
 
        * InvalidEnumArgumentException.cs: Fixed default ctor. Modified
index 452ce1bd46d539d022f1350097a05a40b058e573..d04250b1be1f5ba7280219ecc437e7aa6d52f144 100644 (file)
@@ -186,10 +186,15 @@ namespace System.ComponentModel
                        return base.GetInvocationTarget (type, instance);
                }
 
-               [MonoNotSupported("")]
                protected internal EventHandler GetValueChangedHandler (object component)
                {
-                       throw new NotImplementedException ();
+                       if (component == null)
+                               throw new ArgumentNullException ("component");
+
+                       if (notifiers == null)
+                               return null;
+
+                       return (EventHandler) notifiers [component];
                }
 #endif
 
index c88ffeff4210feded7af17d979269fb4df498e77..d533197e0783d031172d4bec3ae9a86fe7fcb3d0 100644 (file)
@@ -75,7 +75,7 @@ namespace System.ComponentModel
 
                public override int GetHashCode()
                {
-                       return (Filter + ItemFilterType.ToString()).GetHashCode ();
+                       return ToString ().GetHashCode ();
                }
 
                public override bool Match (object obj)
@@ -86,10 +86,9 @@ namespace System.ComponentModel
                }
 
 #if NET_2_0
-               [MonoTODO]
                public override string ToString ()
                {
-                       return base.ToString ();
+                       return String.Format ("{0},{1}", Filter, ItemFilterType);
                }
 #endif
        }