Selaa lähdekoodia

* TypeConverter.cs: Only return browsable properties in GetProperties.

svn path=/trunk/mcs/; revision=49939
Gert Driesen 20 vuotta sitten
vanhempi
sitoutus
0d7cea4ba7

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

@@ -1,3 +1,7 @@
+2005-09-12  Gert Driesen <[email protected]>
+
+	* TypeConverter.cs: Only return browsable properties in GetProperties.
+
 2005-08-28  Gert Driesen <[email protected]>
 
 	* DateTimeConverter.cs: ConvertTo must return zero-length string

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

@@ -190,7 +190,7 @@ namespace System.ComponentModel
 
 		public PropertyDescriptorCollection GetProperties (ITypeDescriptorContext context, object value)
 		{
-			return GetProperties (context, value, null);
+			return GetProperties (context, value, new Attribute[1] { BrowsableAttribute.Yes });
 		}
 
 		public virtual PropertyDescriptorCollection GetProperties (ITypeDescriptorContext context,