Procházet zdrojové kódy

2004-04-24 Gonzalo Paniagua Javier <[email protected]>

	* TypeDescriptor.cs: fixed ComponentInfo.GetAttributes(). Now it returns
	all the attributes, not just DesignerAttribute instances. nGallery
	complained.

svn path=/trunk/mcs/; revision=25919
Gonzalo Paniagua Javier před 22 roky
rodič
revize
64490c7b36

+ 13 - 7
mcs/class/System/System.ComponentModel/ChangeLog

@@ -1,15 +1,21 @@
+2004-04-24  Gonzalo Paniagua Javier <[email protected]>
+
+	* TypeDescriptor.cs: fixed ComponentInfo.GetAttributes(). Now it returns
+	all the attributes, not just DesignerAttribute instances. nGallery
+	complained.
+
 2004-04-21  Lluis Sanchez Gual <[email protected]>
 
-	* BooleanConverter.cs: GetStandardValues must return an array of booleans,
-	  not an array of strings.
+	* BooleanConverter.cs: GetStandardValues must return an array of
+	booleans, not an array of strings.
 
 2004-04-16  Lluis Sanchez Gual <[email protected]>
 
-	* ReflectionPropertyDescriptor.cs: Access internal PropertyInfo through
-	GetPropertyInfo(). Take into account that a component may not be sited or
-	not have some services.
-	* TypeDescriptor.cs: GetTypeFromName():  Added null check for Site property.
-	Other minor fixes.
+	* ReflectionPropertyDescriptor.cs: Access internal PropertyInfo
+	through GetPropertyInfo(). Take into account that a component may not
+	be sited or not have some services.
+	* TypeDescriptor.cs: GetTypeFromName():  Added null check for Site
+	property.  Other minor fixes.
 
 2004-04-16	Joerg Rosenkranz <[email protected]>
 

+ 1 - 1
mcs/class/System/System.ComponentModel/TypeDescriptor.cs

@@ -570,7 +570,7 @@ public sealed class TypeDescriptor
 			if (_attributes != null) return _attributes;
 			
 			bool cache = true;
-			object[] ats = _component.GetType().GetCustomAttributes (typeof(DesignerAttribute), true);
+			object[] ats = _component.GetType().GetCustomAttributes (true);
 			Hashtable t = new Hashtable ();
 			foreach (Attribute at in ats)
 				t [at.TypeId] = at;