dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Collections ArrayList.


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Collections ArrayList.cs,1.6,1.7
Date: Sun, 17 Nov 2002 04:21:17 -0500

Update of /cvsroot/dotgnu-pnet/pnetlib/runtime/System/Collections
In directory subversions:/tmp/cvs-serv32409/runtime/System/Collections

Modified Files:
        ArrayList.cs 
Log Message:


Reverse the order of the "ArrayList.IndexRange" parameters to match ECMA.


Index: ArrayList.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/runtime/System/Collections/ArrayList.cs,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** ArrayList.cs        19 Oct 2002 17:30:44 -0000      1.6
--- ArrayList.cs        17 Nov 2002 09:21:14 -0000      1.7
***************
*** 247,251 ****
  
        // Insert the contents of a collection as a range.
!       public virtual void InsertRange(ICollection c, int index)
                        {
                                int cCount;
--- 247,251 ----
  
        // Insert the contents of a collection as a range.
!       public virtual void InsertRange(int index, ICollection c)
                        {
                                int cCount;
***************
*** 998,1002 ****
                                        }
                                }
!               public override void InsertRange(ICollection c, int index)
                                {
                                        if(c == null)
--- 998,1002 ----
                                        }
                                }
!               public override void InsertRange(int index, ICollection c)
                                {
                                        if(c == null)
***************
*** 1208,1214 ****
                                        list.AddRange(c);
                                }
!               public override void InsertRange(ICollection c, int index)
                                {
!                                       list.InsertRange(c, index);
                                }
                public override void RemoveRange(int index, int count)
--- 1208,1214 ----
                                        list.AddRange(c);
                                }
!               public override void InsertRange(int index, ICollection c)
                                {
!                                       list.InsertRange(index, c);
                                }
                public override void RemoveRange(int index, int count)
***************
*** 1442,1446 ****
                                                
(_("NotSupp_FixedSizeCollection"));
                                }
!               public override void InsertRange(ICollection c, int index)
                                {
                                        throw new NotSupportedException
--- 1442,1446 ----
                                                
(_("NotSupp_FixedSizeCollection"));
                                }
!               public override void InsertRange(int index, ICollection c)
                                {
                                        throw new NotSupportedException
***************
*** 1608,1618 ****
                                {
                                        UnderlyingCheck();
!                                       list.InsertRange(c, index + count);
                                        generation = list.generation;
                                }
!               public override void InsertRange(ICollection c, int index)
                                {
                                        UnderlyingCheck();
!                                       list.InsertRange(c, index + this.index);
                                        generation = list.generation;
                                }
--- 1608,1618 ----
                                {
                                        UnderlyingCheck();
!                                       list.InsertRange(index + count, c);
                                        generation = list.generation;
                                }
!               public override void InsertRange(int index, ICollection c)
                                {
                                        UnderlyingCheck();
!                                       list.InsertRange(index + this.index, c);
                                        generation = list.generation;
                                }
***************
*** 1856,1860 ****
                                        throw new 
NotSupportedException(_("NotSupp_ReadOnly"));
                                }
!               public override void InsertRange(ICollection c, int index)
                                {
                                        throw new 
NotSupportedException(_("NotSupp_ReadOnly"));
--- 1856,1860 ----
                                        throw new 
NotSupportedException(_("NotSupp_ReadOnly"));
                                }
!               public override void InsertRange(int index, ICollection c)
                                {
                                        throw new 
NotSupportedException(_("NotSupp_ReadOnly"));
***************
*** 2045,2053 ****
                                        }
                                }
!               public override void InsertRange(ICollection c, int index)
                                {
                                        lock(SyncRoot)
                                        {
!                                               list.InsertRange(c, index);
                                        }
                                }
--- 2045,2053 ----
                                        }
                                }
!               public override void InsertRange(int index, ICollection c)
                                {
                                        lock(SyncRoot)
                                        {
!                                               list.InsertRange(index, c);
                                        }
                                }





reply via email to

[Prev in Thread] Current Thread [Next in Thread]