* AttributeCollection.cs: support attributes inherited from the one we want. Fixes bug #67088. Thanks to Sander Rijken. svn path=/trunk/mcs/; revision=34578
@@ -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;
}
@@ -1,3 +1,8 @@
+2004-10-01 Gonzalo Paniagua Javier <[email protected]>
+
+ * AttributeCollection.cs: support attributes inherited from the one
+ we want. Fixes bug #67088. Thanks to Sander Rijken.
2004-08-14 Jackson Harper <[email protected]>
* Container.cs: Release all when we are supposed to release all.