diff options
author | Gonzalo Paniagua Javier <gonzalo.mono@gmail.com> | 2004-10-01 06:52:24 +0400 |
---|---|---|
committer | Gonzalo Paniagua Javier <gonzalo.mono@gmail.com> | 2004-10-01 06:52:24 +0400 |
commit | 6f302f55431afd87e1addd59e324b7657405fda4 (patch) | |
tree | 8adee8096dd6b44f4377b555e68f53b33726e269 | |
parent | b9a6cfc5bbf598f42b9ddca2f4c75e5ca48293c7 (diff) |
2004-10-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* AttributeCollection.cs: support attributes inherited from the one
we want. Fixes bug #67088. Thanks to Sander Rijken.
svn path=/branches/mono-1-0/mcs/; revision=34579
-rw-r--r-- | mcs/class/System/System.ComponentModel/AttributeCollection.cs | 2 | ||||
-rw-r--r-- | mcs/class/System/System.ComponentModel/ChangeLog | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/mcs/class/System/System.ComponentModel/AttributeCollection.cs b/mcs/class/System/System.ComponentModel/AttributeCollection.cs index 2c5c6d840e0..1221270f082 100644 --- a/mcs/class/System/System.ComponentModel/AttributeCollection.cs +++ b/mcs/class/System/System.ComponentModel/AttributeCollection.cs @@ -138,7 +138,7 @@ namespace System.ComponentModel get { Attribute attr = null; foreach (Attribute a in attrList) { - if (a.GetType () == type){ + if (type.IsAssignableFrom (a.GetType ())) { attr = a; break; } diff --git a/mcs/class/System/System.ComponentModel/ChangeLog b/mcs/class/System/System.ComponentModel/ChangeLog index 290fc659e98..13a43c1d05a 100644 --- a/mcs/class/System/System.ComponentModel/ChangeLog +++ b/mcs/class/System/System.ComponentModel/ChangeLog @@ -1,3 +1,8 @@ +2004-10-01 Gonzalo Paniagua Javier <gonzalo@ximian.com> + + * AttributeCollection.cs: support attributes inherited from the one + we want. Fixes bug #67088. Thanks to Sander Rijken. + 2004-06-12 Gonzalo Paniagua Javier <gonzalo@ximian.com> * TypeDescriptor.cs: when a component in componentTable is Disposed, |