Browse Source

* BooleanConverter.cs: GetStandardValues must return an array of booleans,
not an array of strings.

svn path=/trunk/mcs/; revision=25775

Lluis Sanchez 22 years ago
parent
commit
a23b84c5df

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

@@ -44,7 +44,7 @@ namespace System.ComponentModel
 
 		public override StandardValuesCollection GetStandardValues (ITypeDescriptorContext context)
 		{
-			return new StandardValuesCollection (new string[2] {"True", "False"} );
+			return new StandardValuesCollection (new bool[2] {true, false} );
 		}
 
 		public override bool GetStandardValuesExclusive (ITypeDescriptorContext context)

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

@@ -1,3 +1,8 @@
+2004-04-21  Lluis Sanchez Gual <[email protected]>
+
+	* 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