Explorar el Código

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.

svn path=/trunk/mcs/; revision=34578
Gonzalo Paniagua Javier hace 21 años
padre
commit
fcbc77cd65

+ 1 - 1
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;
 					}

+ 5 - 0
mcs/class/System/System.ComponentModel/ChangeLog

@@ -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.