[Mono-bugs] [Bug 57338][Nor] New - ComponentModel.BooleanConverter GetStandardValues code error

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 21 Apr 2004 09:53:35 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by davide@devage.com.

http://bugzilla.ximian.com/show_bug.cgi?id=57338

--- shadow/57338	2004-04-21 09:53:35.000000000 -0400
+++ shadow/57338.tmp.28126	2004-04-21 09:53:35.000000000 -0400
@@ -0,0 +1,32 @@
+Bug#: 57338
+Product: Mono: Class Libraries
+Version: unspecified
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: System
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: davide@devage.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: ComponentModel.BooleanConverter GetStandardValues code error 
+
+Description of Problem:
+In the System.ComponentModel.BooleanConverter I think that the method
+GetStandardValues should returns an array of object of type boolean not of
+type string; otherwise when you check for true/false if is a valid value
+for a TypeConverter the equal returns false.
+
+Now the method code is:
+return new StandardValuesCollection (new string[2] {"True", "False"} );
+I think that should be:
+return new StandardValuesCollection (new object[2] {true, false} );
+
+Thanks
+
+Davide Icardi