2008-06-27 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
authorAndreas N <andreas@mono-cvs.ximian.com>
Fri, 27 Jun 2008 07:46:25 +0000 (07:46 -0000)
committerAndreas N <andreas@mono-cvs.ximian.com>
Fri, 27 Jun 2008 07:46:25 +0000 (07:46 -0000)
* Collection.cs: Fix parameter names
* ReadOnlyCollection.cs: Fix parameter names

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

mcs/class/corlib/System.Collections.ObjectModel/ChangeLog
mcs/class/corlib/System.Collections.ObjectModel/Collection.cs
mcs/class/corlib/System.Collections.ObjectModel/ReadOnlyCollection.cs

index 98fe94120a668a7363d2273d0a9a65e1548746c0..50bc81c639652b39f1b5ff454e06a5fec55d99c6 100644 (file)
@@ -1,3 +1,8 @@
+2008-06-27  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
+
+       * Collection.cs: Fix parameter names
+       * ReadOnlyCollection.cs: Fix parameter names
+
 2008-04-02  Andreas Nahr  <ClassDevelopment@A-SoftTech.com>
 
        * ReadOnlyCollection.cs: Fix parameter names
index 2d8e359e3107c854d93636ea5d260d4a66d89774..76dbc47d7f3c7ca79e0f99ce84e6be7ff1adf985 100644 (file)
@@ -190,9 +190,9 @@ namespace System.Collections.ObjectModel
 #endregion
 
 #region Not generic interface implementations
-               void ICollection.CopyTo (Array array, int arrayIndex)
+               void ICollection.CopyTo (Array array, int index)
                {
-                       ((ICollection)list).CopyTo (array, arrayIndex);
+                       ((ICollection)list).CopyTo (array, index);
                }
                
                IEnumerator IEnumerable.GetEnumerator ()
@@ -200,37 +200,37 @@ namespace System.Collections.ObjectModel
                        return (IEnumerator) list.GetEnumerator ();
                }
                                
-               int IList.Add (object item)
+               int IList.Add (object value)
                {
                        int idx = list.Count;
-                       InsertItem (idx, ConvertItem (item));
+                       InsertItem (idx, ConvertItem (value));
                        return idx;
                }
                
-               bool IList.Contains (object item)
+               bool IList.Contains (object value)
                {
-                       if (IsValidItem (item))
-                               return list.Contains ((T) item);
+                       if (IsValidItem (value))
+                               return list.Contains ((T) value);
                        return false;
                }
                
-               int IList.IndexOf (object item)
+               int IList.IndexOf (object value)
                {
-                       if (IsValidItem (item))
-                               return list.IndexOf ((T) item);
+                       if (IsValidItem (value))
+                               return list.IndexOf ((T) value);
                        return -1;
                }
                
-               void IList.Insert (int index, object item)
+               void IList.Insert (int index, object value)
                {
-                       InsertItem (index, ConvertItem (item));
+                       InsertItem (index, ConvertItem (value));
                }
                
-               void IList.Remove (object item)
+               void IList.Remove (object value)
                {
                        CheckWritable (list);
 
-                       int idx = IndexOf (ConvertItem (item));
+                       int idx = IndexOf (ConvertItem (value));
 
                        RemoveItem (idx);
                }
index 5b86eaccbff22da89bddfdc7e1a46dffb4cd0592..e6534c66d79806a307f1d5973ee9cb501c9c9a5c 100644 (file)
@@ -121,9 +121,9 @@ namespace System.Collections.ObjectModel
                }
 
 #region Not generic interface implementations
-               void ICollection.CopyTo (Array array, int arrayIndex)
+               void ICollection.CopyTo (Array array, int index)
                {
-                       ((ICollection)list).CopyTo (array, arrayIndex);
+                       ((ICollection)list).CopyTo (array, index);
                }
                                
                IEnumerator IEnumerable.GetEnumerator ()
@@ -131,7 +131,7 @@ namespace System.Collections.ObjectModel
                        return ((IEnumerable) list).GetEnumerator ();
                }
                
-               int IList.Add (object item)
+               int IList.Add (object value)
                {
                        throw new NotSupportedException ();
                }
@@ -141,26 +141,26 @@ namespace System.Collections.ObjectModel
                        throw new NotSupportedException ();
                }
 
-               bool IList.Contains (object item)
+               bool IList.Contains (object value)
                {
-                       if (Collection <T>.IsValidItem (item))
-                               return list.Contains ((T) item);
+                       if (Collection <T>.IsValidItem (value))
+                               return list.Contains ((T) value);
                        return false;
                }
                
-               int IList.IndexOf (object item)
+               int IList.IndexOf (object value)
                {
-                       if (Collection <T>.IsValidItem (item))
-                               return list.IndexOf ((T) item);
+                       if (Collection <T>.IsValidItem (value))
+                               return list.IndexOf ((T) value);
                        return -1;
                }
                
-               void IList.Insert (int index, object item)
+               void IList.Insert (int index, object value)
                {
                        throw new NotSupportedException ();
                }
                
-               void IList.Remove (object item)
+               void IList.Remove (object value)
                {
                        throw new NotSupportedException ();
                }