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.11,1.12 DictionaryEntry.cs,1.3,1.4
Date: Thu, 20 Feb 2003 22:12:56 -0500

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

Modified Files:
        ArrayList.cs DictionaryEntry.cs 
Log Message:


Minor bug fixes to collection classes.


Index: ArrayList.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/runtime/System/Collections/ArrayList.cs,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -r1.11 -r1.12
*** ArrayList.cs        1 Feb 2003 23:26:04 -0000       1.11
--- ArrayList.cs        21 Feb 2003 03:12:54 -0000      1.12
***************
*** 900,904 ****
                                        throw new 
ArgumentException(_("Arg_InvalidArrayRange"));
                                }
!                               return new ArrayListEnumerator(this, index, 
count);
                        }
  
--- 900,904 ----
                                        throw new 
ArgumentException(_("Arg_InvalidArrayRange"));
                                }
!                               return new ArrayListEnumerator(this, index, 
index + count);
                        }
  
***************
*** 946,950 ****
                                                                
(_("Invalid_CollectionModified"));
                                                }
!                                               else if(position < 0 || 
position > finish)
                                                {
                                                        throw new 
InvalidOperationException
--- 946,950 ----
                                                                
(_("Invalid_CollectionModified"));
                                                }
!                                               else if(position < start || 
position >= finish)
                                                {
                                                        throw new 
InvalidOperationException

Index: DictionaryEntry.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Collections/DictionaryEntry.cs,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** DictionaryEntry.cs  26 Nov 2002 04:00:36 -0000      1.3
--- DictionaryEntry.cs  21 Feb 2003 03:12:54 -0000      1.4
***************
*** 51,54 ****
--- 51,58 ----
                set
                {
+                       if(value == null)
+                       {
+                               throw new ArgumentNullException("value");
+                       }
                        key_ = value;
                }





reply via email to

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