diff options
author | Gonzalo Paniagua Javier <gonzalo.mono@gmail.com> | 2004-04-24 08:04:54 +0400 |
---|---|---|
committer | Gonzalo Paniagua Javier <gonzalo.mono@gmail.com> | 2004-04-24 08:04:54 +0400 |
commit | 64490c7b3600d33d577d615bcce49cd6468f9a23 (patch) | |
tree | 1d75a6b10795af7515a733c766755f5e631f622e /mcs/class/System/System.ComponentModel | |
parent | e707ebe8949021a3c97a299f76237a126ebc7270 (diff) |
2004-04-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* TypeDescriptor.cs: fixed ComponentInfo.GetAttributes(). Now it returns
all the attributes, not just DesignerAttribute instances. nGallery
complained.
svn path=/trunk/mcs/; revision=25919
Diffstat (limited to 'mcs/class/System/System.ComponentModel')
-rw-r--r-- | mcs/class/System/System.ComponentModel/ChangeLog | 20 | ||||
-rw-r--r-- | mcs/class/System/System.ComponentModel/TypeDescriptor.cs | 2 |
2 files changed, 14 insertions, 8 deletions
diff --git a/mcs/class/System/System.ComponentModel/ChangeLog b/mcs/class/System/System.ComponentModel/ChangeLog index 38272f61799..2a2ae853d9c 100644 --- a/mcs/class/System/System.ComponentModel/ChangeLog +++ b/mcs/class/System/System.ComponentModel/ChangeLog @@ -1,15 +1,21 @@ +2004-04-24 Gonzalo Paniagua Javier <gonzalo@ximian.com> + + * TypeDescriptor.cs: fixed ComponentInfo.GetAttributes(). Now it returns + all the attributes, not just DesignerAttribute instances. nGallery + complained. + 2004-04-21 Lluis Sanchez Gual <lluis@ximian.com> - * 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 <lluis@ximian.com> - * 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 <joergr@voelcker.com> diff --git a/mcs/class/System/System.ComponentModel/TypeDescriptor.cs b/mcs/class/System/System.ComponentModel/TypeDescriptor.cs index bc3507df5a6..c598690fcf1 100644 --- a/mcs/class/System/System.ComponentModel/TypeDescriptor.cs +++ b/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; |