Author: jpobst
Date: 2007-05-01 15:36:44 -0400 (Tue, 01 May 2007)
New Revision: 76539

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ComboBox.cs
Log:
2007-05-01  Jonathan Pobst  <[EMAIL PROTECTED]>

        * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
        [Fixes bug #81506]

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-05-01 19:17:13 UTC (rev 76538)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-05-01 19:36:44 UTC (rev 76539)
@@ -1,4 +1,9 @@
 2007-05-01  Jonathan Pobst  <[EMAIL PROTECTED]>
+
+       * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
+       [Fixes bug #81506]
+
+2007-05-01  Jonathan Pobst  <[EMAIL PROTECTED]>
        corcompare work: A - M
        * BindingNavigator.cs
        * Button.cs

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ComboBox.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ComboBox.cs      
2007-05-01 19:17:13 UTC (rev 76538)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ComboBox.cs      
2007-05-01 19:36:44 UTC (rev 76539)
@@ -629,7 +629,7 @@
                                        return;
 
                                if (value <= -2 || value >= Items.Count)
-                                       throw new ArgumentOutOfRangeException 
("Index of out range");
+                                       throw new ArgumentOutOfRangeException 
("SelectedIndex");
                                selected_index = value;
 
                                if (dropdown_style != 
ComboBoxStyle.DropDownList) {
@@ -1152,7 +1152,7 @@
                protected override void RefreshItem (int index)
                {
                        if (index < 0 || index >= Items.Count)
-                               throw new ArgumentOutOfRangeException ("Index 
of out range");
+                               throw new ArgumentOutOfRangeException ("index");
                                
                        if (draw_mode == DrawMode.OwnerDrawVariable)
                                item_heights.Remove (Items [index]);
@@ -1691,13 +1691,13 @@
                        public virtual object this [int index] {
                                get {
                                        if (index < 0 || index >= Count)
-                                               throw new 
ArgumentOutOfRangeException ("Index of out range");
+                                               throw new 
ArgumentOutOfRangeException ("index");
 
                                        return object_items[index];
                                }
                                set {
                                        if (index < 0 || index >= Count)
-                                               throw new 
ArgumentOutOfRangeException ("Index of out range");
+                                               throw new 
ArgumentOutOfRangeException ("index");
                                        if (value == null)
                                                throw new ArgumentNullException 
("value");
 
@@ -1795,7 +1795,7 @@
                        public void Insert (int index,  object item)
                        {
                                if (index < 0 || index > Count)
-                                       throw new ArgumentOutOfRangeException 
("Index of out range");
+                                       throw new ArgumentOutOfRangeException 
("index");
                                if (item == null)
                                        throw new ArgumentNullException 
("item");
                                
@@ -1823,7 +1823,7 @@
                        public void RemoveAt (int index)
                        {
                                if (index < 0 || index >= Count)
-                                       throw new ArgumentOutOfRangeException 
("Index of out range");
+                                       throw new ArgumentOutOfRangeException 
("index");
                                        
                                if (index == owner.SelectedIndex)
                                        owner.SelectedIndex = -1;

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to