1 2006-04-26 Atsushi Enomoto <atsushi@ximian.com>
3 * Comparer.cs : changed internal field from CultureInfo to
4 CompareInfo. This cosmetic change should fix bug #77701.
6 2006-03-28 Marek Safar <marek.safar@seznam.cz>
8 * Stack.cs: Changed ctor to allocate only requested memory.
10 Tue Feb 28 14:16:25 CET 2006 Paolo Molaro <lupus@ximian.com>
12 * BitArray.cs: reintroduce optimization carelessly removed by
15 2006-02-03 Sebastien Robitaille <sebastien.robitaille@croesus.com>
17 * BitArray.cs: Renamed members for interoperability with MS.
19 Tue Jan 24 18:24:00 CET 2006 Paolo Molaro <lupus@ximian.com>
21 * BitArray.cs: optimize bit access by removing expensive
24 2006-01-04 Sebastien Pouliot <sebastien@ximian.com>
26 * Hashtable.cs: Mark all inner classes as [Serializable] to match MS
27 behaviour. Fix bug #76300.
29 2005-12-19 Sebastien Pouliot <sebastien@ximian.com>
31 * ArrayList.cs: Fix default capacity under 2.0 (and unit tests under
34 2005-12-07 Sebastien Pouliot <sebastien@ximian.com>
36 * SortedList.cs: Removed check for IComparable in ctor (fixed bug
37 #76750). Removed unused private method. Added more useful info (the
38 duplicate key) to an exception.
40 2005-12-06 Sebastien Pouliot <sebastien@ximian.com>
42 * CaseInsensitiveHashCodeProvider: Serialization is now compatible
43 with MS. Removes the last TODO for 1.1 in this namespace :-)
45 2005-12-05 Sebastien Pouliot <sebastien@ximian.com>
47 * Comparer.cs: Added GetObjectData method to implement ISerializable.
49 2005-09-29 Miguel de Icaza <miguel@novell.com>
51 * Add ComVisible(true) to all the classes that needed it.
53 * Removed documentation from DictionaryBase.cs and moved it to
56 * ArrayList.cs: Fixed signature for constructor, parameter names
59 * CollectionBase.cs: Add a couple of missing methods.
61 2005-09-01 Atsushi Enomoto <atsushi@ximian.com>
63 * Hashtable.cs : SyncHashtable.GetEnumerator() returned keys instead
64 of entries (DictionaryEntry). Fixed bug #75790.
66 2005-09-01 Atsushi Enomoto <atsushi@ximian.com>
68 * SortedList.cs : Even though the key/value pair being set are
69 identical to the existing one, it causes snapshot out of sync.
72 2005-07-21 Lluis Sanchez Gual <lluis@novell.com>
74 * CollectionBase.cs: Lazily create the inner list. MS.NET does
75 it and we need to do the same for the sake of serialization
76 interoperability. Fixes bug #75575.
78 2005-07-17 Florian Gross <flgr@ccan.de>
80 * ArrayList.cs: pass along index offset in RangedArrayList:ToArray.
83 2005-06-23 Ben Maurer <bmaurer@ximian.com>
85 * Queue.cs: Use the enumerator rather than copy to in the
86 ctor. This makes us more compat with msft, for example, when
91 2005-06-23 Martin Baulig <martin@ximian.com>
93 * IKeyComparer.cs: Removed.
95 2005-06-12 David Waite <dwaite@gmail.com>
97 * Hashtable.cs: make prime-related functions internal so generic
98 Dictionary can use them.
99 * IEqualityComparer.cs: add non-generic IEqualityComparer interface
101 2005-06-06 Zoltan Varga <vargaz@freemail.hu>
103 * Hashtable.cs: Add some missing 2.0 attributes.
105 2005-05-26 Ben Maurer <bmaurer@ximian.com>
107 * Queue.cs (grow): fix 61919.
109 2005-05-09 Atsushi Enomoto <atsushi@ximian.com>
111 * Stack.cs : empty_stack.CopyTo(empty_array, 0) should be allowed.
113 2005-02-21 Zoltan Varga <vargaz@freemail.hu>
115 * Hashtable.cs: Add net 2.0 ReliabilityContractAttributes.
117 2005-02-19 Kazuki Oikawa <kazuki@panicode.com>
119 * SortedList.cs, Stack.cs: Reverse the order in the Equals calls.
121 2004-12-21 Ben Maurer <bmaurer@ximian.com>
123 * Hashtable.cs (get_Item): duplicate Find here, as we can
124 specialize a few things. This gives me 7% back.
125 (Find) Use break rather than return -1. Saves a bit of code.
127 * Hashtable.cs (GetHash): Avoid a method call. Also, don't store
128 the this.hcpRef in a variable. This will create another register
129 which must be pushed on the stack. It is better to just reference
130 the variable again. hcpRef.GetHashCode (key) is the slow path
131 anyways, so an extra variable reference here doesn't hurt
134 This gives me a few % back in a raw benchmark.
136 2004-12-20 Ben Maurer <bmaurer@ximian.com>
138 * Hashtable.cs (Find): Some minor optimizations here.
140 * Hashtable.cs: Remove GetImpl and inline it.
142 * Hashtable.cs (Find): Before calling KeyEquals, check to see if k
143 == key (ie, they are the same pointer). In many cases, this will
144 avoid two virtual calls. This gives me 1% on mcs bootstrap (!!!!)
146 * Hashtable.cs (Find): Make `i' a uint rather than an int. This
147 avoids having a long compare.
149 2004-12-16 Lluis Sanchez Gual <lluis@novell.com>
151 * Hashtable.cs: Check for null serialization info in OnDeserialization.
152 A hashtable subclass can fully override the constructor, so
153 serializationInfo would be null in this case. Fixes bug #70698.
155 2004-12-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
157 * ArrayList.cs: don't initialize _items twice. Closes bug #70620.
159 2004-12-16 Lluis Sanchez Gual <lluis@novell.com>
161 * Hashtable.cs: Add deserialized elements in OnDeserialization, since
162 when the serialization constructor is called, some of the elements
163 may not yet be fully deserialized. This fixes bug #70570.
165 2004-10-08 Raja R Harinath <rharinath@novell.com>
167 * CaseInsensitiveHashCodeProvider.cs (GetHashCode): When culture
168 is not invariant, avoid an icall on every character.
170 2004-07-21 Geoff Norton <gnorton@customerdna.com>
172 * Hashtable.cs: lock the SyncRoot when Cloning a Synchronized hashtable to avoid
173 a snapshot out of sync error.
175 2004-07-21 Duncan Mak <duncan@ximian.com>
177 * DictionaryBase.cs: Rename the dictionary field to hashtable,
178 which causes a serialization interop bug. Fixes bug #61721.
180 2004-06-18 Ben Maurer <bmaurer@ximian.com>
182 * IKeyComparer.cs: v2 class
184 2004-06-15 Gert Driesen <drieseng@users.sourceforge.net>
186 * CaseInsensitiveComparer.cs: added TODO for serialization
187 * CaseInsensitiveHashCodeProvider.cs: added TODO for serialization
188 * SortedList.cs: added TODO for serialization
189 * Stack.cs: added TODO for serialization
191 2004-06-14 Sebastien Pouliot <sebastien@ximian.com>
193 * Hashtable.cs: Compare index and length in CopyTo only when length > 0.
195 2004-06-14 Lluis Sanchez Gual <lluis@ximian.com>
197 * ArrayList.cs: Avoid endless loop in Insert when the current size is 0.
199 2004-06-08 Lluis Sanchez Gual <lluis@ximian.com>
201 * ReadOnlyCollectionBase.cs: Renamed internal variable to make serialization
202 compatible with MS.NET.
204 2004-06-01 Sebastien Pouliot <sebastien@ximian.com>
206 * SortedList.cs: Fixed case where the initial capacity was set to 0.
208 2004-05-31 Sebastien Pouliot <sebastien@ximian.com>
210 * Hashtable.cs: Added ArgumentNullException in GetObjectData.
212 2004-05-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
215 * Comparer.cs: reverted last 2 patches from Gert Driesen. Totally wrong.
218 2004-05-29 Gert Driesen (drieseng@users.sourceforge.net)
220 * Compare.cs: ISerializable should only be implemented
223 2004-05-29 Gert Driesen (drieseng@users.sourceforge.net)
225 * Compare.cs: Implemented ISerializable, fixes public API
227 2004-05-27 Sebastien Pouliot <sebastien@ximian.com>
229 * Hashtable.cs: Cloned synchronized Hashtables are now synchronized.
230 * Queue.cs: Fixed case where we could still get Current after the last
231 MoveNext. Fixed Count for Queue.Synchronize (Queue.Synchronize (q)).
232 * SortedList.cs: Added missing ICloneable support to internal
233 enumerator. Added Capacity to the synchronized version of SortedList.
234 Setting Capacity to 0 returns it to it's default value (16).
236 2004-05-26 Sebastien Pouliot <sebastien@ximian.com>
238 * ArrayList.cs: Fixed possible integer overflows.
240 2004-05-24 Lluis Sanchez Gual <lluis@ximian.com>
242 * Hashtable.cs: Renamed internal class to make serialization compatible
245 2004-05-10 Gert Driesen (drieseng@users.sourceforge.net)
246 * Hashtable.cs: marked EnumeratorMode private
247 * SortedList.cs: marked EnumeratorMode private
249 2004-05-01 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
251 * Comparer.cs: ensure culture is set to null , removed
252 static constructor, removed unneccesary checks
254 2004-05-01 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
256 * CaseInsensitiveComparer.cs: Fix the default constructor (needs to
257 set CurrentCulture, ensure culture is set to null for invariant case,
259 * Comparer.cs: Restyle, change lineendings
261 2004-05-01 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
263 * CaseInsensitiveHashCodeProvider.cs
264 * CaseInsensitiveComparer.cs: Change lineendings
265 * CaseInsensitiveComparer.cs: Restyle
267 2004-05-01 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
269 * BitArray.cs: Fix parameter names
270 * CaseInsensitiveHashCodeProvider.cs: Fix signature
271 * DictionaryEntry.cs: Fix parameter names
272 * Hashtable.cs: Fix signatures
273 * SortedList.cs: Fix signatures
275 2004-04-25 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
277 * CaseInsensitiveHashCodeProvider.cs: Fix the default constructor (needs to
278 set CurrentCulture, Add null check to other constructor, Call correct function
279 for invariant case, ensure culture is set to null for invariant case, removed
280 static constructor, made invariant version available as internal in .Net 1.0
282 2004-04-21 Lluis Sanchez Gual <lluis@ximian.com>
284 * CaseInsensitiveHashCodeProvider.cs: If the culture is null, don't use
285 Char.ToLower(c,culture), since it does not accept null as culture.
287 2004-04-20 Lluis Sanchez Gual <lluis@ximian.com>
289 * Queue.cs: Renamed internal membesr to match MS.NET (to allow serialization
290 interoperability). I also had to make some changes in the implementation:
291 I added a field _tail that points at the first free position in the array, and
292 changed the type of growFactor, which is now an int (its value is the old
295 2004-04-19 Lluis Sanchez Gual <lluis@ximian.com>
297 * Comparer.cs: Made constructor public.
299 2004-03-30 Lluis Sanchez Gual <lluis@ximian.com>
301 * CaseInsensitiveHashCodeProvider.cs: Use the CultureInfo of the calling
302 thread, not the one of the thread that created the instance.
303 * Comparer.cs: Added DefaultInvariant property and missing constructor.
304 Use the specified culture info to compare strings.
306 2004-03-30 Lluis Sanchez Gual <lluis@ximian.com>
308 * CaseInsensitiveHashCodeProvider.cs: Added support for CultureInfo.
309 Implemented property DefaultInvariant.
311 2004-03-29 Lluis Sanchez Gual <lluis@ximian.com>
313 * CollectionBase.cs: Renamed internal arraylist member to match MS.NET
314 (to allow serialization interoperability).
316 2004-03-18 David Sheldon <dave-mono@earth.li>
318 * Hashtable.cs: Serialise/Deserialise to two arrays of
319 keys/values. This will match what MS.NET appears to be
322 2004-02-12 Jackson Harper <jackson@ximian.com>
324 * SortedList.cs: Only .et 1.0 sets the capacity to a min of
327 2004-01-13 Lluis Sanchez Gual <lluis@ximian.com>
329 * Hashtable.cs: Added serialization support to SynchedHashtable. This
332 2004-01-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
334 * Hashtable.cs: fix Clone. Closes bug #52740. Patch by Benjamin Jemlich
337 2003-12-26 Ben Maurer <bmaurer@users.sourceforge.net>
339 * ArrayList.cs: Add class `SimpleEnumerator' this handles the
340 .GetEnumerator We are able to remove fields by doing this, the
341 sizeof the simple version is 75% of that of the complex one, so we
342 get a pretty nice saving.
344 2003-12-23 Lluis Sanchez Gual <lluis@ximian.com>
346 * ArrayList.cs: Renamed private fields m_Count, m_Data and
347 m_StateChanges to _size, _items and _version, to make it compatible with
348 MS.NET (needed for remoting interoperability). This fixes bug #52438.
350 2003-12-01 Dick Porter <dick@ximian.com>
352 * CaseInsensitiveComparer.cs: Construct the default comparers when
353 they're needed, to avoid a dependency loop with CultureInfo's
356 2003-12-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
358 * Queue.cs: patch from Carlos Barcenilla.
360 - method: ICollection.Clone()
361 - Optimized. Removed unneeded instructions.
362 - method: public static Queue Synchronized (Queue queue)
363 - ArgumentNullException.ParamName must be "queue", not null.
364 - method: public virtual void TrimToSize()
365 - Must increment modCount.
367 private class SyncQueue
368 - method: public override object Clone ()
369 - Must return a synchronized (SyncStack) instance.
370 - method: public override void TrimToSize ()
373 2003-11-13 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
375 * IEnumerator.cs: Added missing attribute
377 2003-11-12 Miguel de Icaza <miguel@ximian.com>
379 * CaseInsensitiveComparer.cs: Add missing method.
381 2003-11-10 Zoltan Varga <vargaz@freemail.hu>
383 * Stack.cs: Applied patch from Carlos A. Barcenilla to fix minor
386 2003-11-03 Lluis Sanchez Gual <lluis@ximian.com>
388 * SortedList.cs: Added [Serializable] to Slot class. This fixes bug #50484.
390 2003-10-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
392 * System.Collections/Hashtable.cs: patch from Carlos A.
393 Barcenilla (barce@frlp.utn.edu.ar) that includes some fixes for
394 Hashtable + NUnit2 tests.
396 2003-10-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
398 * Queue.cs: nullify the array in Clear.
400 2003-09-26 Zoltan Varga <vargaz@freemail.hu>
402 * Hashtable.cs: Remove empty static constructor since it prevents this
403 class from being beforefieldinit.
405 2003-08-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
407 * CaseInsensitiveHashCodeProvider.cs: small speed improvement.
409 2003-08-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
411 * Stack.cs: patch by JoergR@voelcker.com (Joerg Rosenkranz) that fixes
414 2003-08-20 Duncan Mak <duncan@ximian.com>
416 * Hashtable.cs (PutImpl): Fix my previous checkin, see details
417 posted on bug #47692.
419 I really hope I don't mess up this time, because, if I do again,
420 it will be really embarrassing.
422 2003-08-17 Duncan Mak <duncan@ximian.com>
424 * Hashtable.cs (PutImpl): Patch from Luca Barbieri <lb@lb.ods.org>.
425 Currently Hashtable.PutImpl has an incorrect test which causes the
426 key chain search to terminate as soon as a free slot is found,
427 causing key duplication.
429 This fixes bug #47692.
431 2003-08-11 Duncan Mak <duncan@ximian.com>
433 * DictionaryBase.cs: Applied patch from Carlos Barcenilla
434 (barce@frlp.utn.edu.ar).
436 (Idictionary.Add): Added OnValidate, and undo the transaction if
437 OnInsertCompleteFails.
439 (Indexer set): MS Implementation does not call OnInsert and undoes
440 if OnSetComplete throws an exception
441 (Indexer get): return value is obtained after calling OnGet.
443 (IDictionary.Remove): Call to OnValidate added. If key does not
444 exists calls OnValidate, OnRemove and OnRemoveComplete.
446 (protected IDictionary Dictionary get): Should return itself, not
449 This fixes bug #47460.
451 2003-08-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
453 * CollectionBase.cs: applied patch from Carlos Barcenilla
454 (barce@frlp.utn.edu.ar).
456 2003-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
458 * ArrayList.cs: added / so that gvim syntax highlight doesn't go crazy.
459 * CollectionBase.cs: fixed several bugs reported by Carlos Barcenilla
460 (barce@frlp.utn.edu.ar). Most of the patch is also his.
462 2003-07-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
464 * ArrayList.cs: fixed EnsureCapacity when m_Data.Length is 0.
466 2003-07-29 Miguel de Icaza <miguel@ximian.com>
468 * ArrayList.cs: Deployed ArrayList from Tum; Fixed iterator to
469 allow nulls, and inline a few calls to make profiling more useful.
471 2003-07-24 Miguel de Icaza <miguel@ximian.com>
473 * ArrayList.cs: Removed MonoTODO.
475 2003-07-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
477 * Hashtable.cs: made SynchedHashtable serializable. Fixes bug #45918.
478 Thanks to JoergR@voelcker.com (Joerg Rosenkranz).
480 2003-06-27 Duncan Mak <duncan@ximian.com>
482 * Hashtable.cs: Patch from PAF@design.ru, GetEnumerator should be
483 returning DictionaryEntrys, instead of just the Key of the table.
485 2003-06-26 Lluis Sanchez Gual <lluis@ximian.com>
487 * Hashtable.cs: Fixed bug when serializing and deserializing
488 a hashtable from which one element has been deleted. The Object instance
489 used as a removed marker is not detected as a such, since the
490 serializer creates a different instace.
492 2003-06-13 Herve Poussineau <hpoussineau@fr.st>
494 * SortedList.cs: Can enumerate on DictionaryEntries, not only on
495 keys on values. Enumerate by default on DictionaryEntries.
497 2003-06-12 Duncan Mak <duncan@ximian.com>
499 * Hashtable.cs (constructor):
500 if loadFactor equals Single.NaN, then throw an
501 ArgumentOutOfRangeException.
503 if we set capacity to be too big (ie. capacity / loadFactor is
504 greater than Int32.MaxValue), then we throw an ArgumentException.
506 2003-06-11 Duncan Mak <duncan@ximian.com>
508 * SortedList.cs: Oi! What a mess.
510 If the list was constructed using the null-param constructor, and
511 it tries to set it to a size lower than the default, let it do so.
513 If the list was constructed with a specific size, and it tries to
514 set it to a size lower than the specified size, set it to the
517 (IndexOfValue): Clean up the code somewhat, make it allow for
520 2003-06-08 Ben Maurer <bmaurer@users.sourceforge.net>
521 * ArrayList.cs, Hashtable.cs, SortedList.cs: Enumerator fixes, error
524 2003-06-07 Ben Maurer <bmaurer@users.sourceforge.net>
525 * Stack.cs: Contains (null) works correctly. We never have the
526 array sized less than 16, so that the doubling logic works no
527 matter what. The enumerator is IClonable, like in ms. The
528 Enumerator correctly throws an exception if Current is called
529 before the enumerator is started. We now pass all the Rotor tests
532 2003-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
534 * Stack.cs: fixed Clone ().
536 2003-06-04 Ben Maurer <bmaurer@users.sourceforge.net>
537 * DictionaryEntry.cs: Throw exception if key == null. Fixes Rotor
540 2003-06-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
542 * ArrayList.cs: nullify the array in Clear ().
543 * Queue.cs: nullify the array in Dequeue ().
544 * Stack.cs: nullify the array in Pop ().
546 2003-06-02 Ben Maurer <bmaurer@users.sourceforge.net>
547 * Queue.cs: Added argument checking in constructors according to
548 specs. Also changed default size to 32 as required by the specs.
550 2003-05-31 Ben Maurer <bmaurer@users.sourceforge.net>
551 * BitArray.cs: Rewrote, as it was failing most of the Rotor
552 tests. It now passes them 100%. Also fixes bug #43667.
554 2003-05-03 Ben Maurer <bmaurer@users.sourceforge.net>
556 Made ArrayList.GetRange () make a wrapper around the array list, like Microsoft does. Fixes bug #39724.
558 2003-05-03 Ben Maurer <bmaurer@users.sourceforge.net>
560 Added methods to support IList wrappers
562 2003-04-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
564 * ArrayList.cs: patch from bernard@ugsolutions.com (Bernie Solomon)
565 that fixes bug #41684.
567 2003-04-15 Eduardo Garcia Cebollero <kiwnix@yahoo.es>
569 * CaseInsensitiveComparerTest.cs: Fixed Compare Method (now works
570 like MS.NET) and implemented the
571 CaseInsensitiveComparerTest(culture) constructor.
573 2003-03-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
575 * Queue.cs: fixed bug #39046.
577 2003-02-15 Pedro Martnez Juli <yoros@wanadoo.es>
579 * Hashtable.cs: Make hashtable serializable (at least with binary
580 formatter). This process was started by the Hashtable maintainer.
582 2003-02-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
584 * ArrayList.cs: fixed setSize (!).
586 2003-01-31 Zoltan Varga <vargaz@freemail.hu>
588 * ArrayList.cs (RemoveAt): duplicated the the code from RemoveRange
589 here, since RemoveAt raises a different exception than RemoveRange
590 when the index is out-of-range. Fixes the ArrayList unit tests.
592 * ArrayList.cs (RemoveRange): fixed indentation.
594 2003-01-12 Varga Zoltan <vargaz@freemail.hu>
596 * ArrayList.cs (RemoveRange): Patch for allowing zero-size
597 removal at the end of a list. It also cleans up the argument
598 checking code so the raised exceptions have the same message as
601 2003-01-10 Duncan Mak <duncan@ximian.com>
603 * ArrayList.cs (Insert): Patch from Zoltan
604 (Zoltan.2.Varga@nokia.com).
606 2002-10-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
608 * Hashtable.cs: add the key to the error message when
611 2002-10-15 Vladimir Vukicevic <vladimir@pobox.com>
613 * Queue.cs: update new capacity in grow(), preventing queue from
614 constantly looping over old elements in Dequeue(). Also use
615 capacity instead of contents.Length in Enqueue().
617 2002-09-24 Nick Drochak <ndrochak@gol.com>
619 * ArrayList.cs: Make enumerator throw exception if the ArrayList is
620 mutated (Insert, Delete, etc.). Also, fix bug in InsertRange() when
621 this was passed as parameter.
623 2002-08-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
625 * ArrayList.cs: fixed bug #29658.
627 2002-08-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
631 * CaseInsensitiveComparer.cs:
632 * CaseInsensitiveHashCodeProvider.cs:
634 * Queue.cs: misc. fixes based on class status page.
636 2002-07-22 Tim Coleman <tim@timcoleman.com>
637 * CaseInsensitiveHashCodeProvider.cs: Added missing constructor
638 which was breaking System.Web build on linux
640 2002-07-05 Sergey Chaban <serge@wildwestsoftware.com>
642 * SortedList.cs: Implemented thread-safe wrapper. Changed some
645 2002-07-02 Nick Drochak <ndrochak@gol.com>
647 * SortedList.cs: Constructors should use the capacity given regardless
648 how small. After a Clear() the Capacit should be 16. Since a Dictionary
649 might be used in the constructor, make sure we trap exceptions thrown
650 by the Comparer, like in Add().
652 2002-06-30 Nick Drochak <ndrochak@gol.com>
654 * SortedList.cs: Many fixed. A lot of checking for null and throwing
655 exceptions. A few logic bugs fixed as well
657 2002-06-25 Nick Drochak <ndrochak@gol.com>
659 * Queue.cs (CopyTo): Fix logic for copying the circular array.
660 (Enqueue): Use actual length of array to determine when to grow
661 (QueueEnumerator) Fixed Current to use array length, not capacity, and
662 fixed off-by-one errror in MoveNext().
664 Tue Jun 4 13:08:43 CEST 2002 Paolo Molaro <lupus@ximian.com>
666 * ArrayList.cs: fixed RemoveAt() implementation.
668 2002-05-27 Nick Drochak <ndrochak@gol.com>
670 * ArrayList.cs (LastIndexOf): Return -1 if searching for null, also
671 fix check of parameters sent to make sure we don't search beyond the
672 beginning of the list.
673 (ListWrapper): Throw exception if called with null.
674 We now pass all unit tests.
676 2002-05-23 Duncan Mak <duncan@ximian.com>
678 * ArrayList.cs (Wrapper): Preliminary implementation of
679 ArrayList.Wrapper (IList).
681 2002-05-22 Martin Baulig <martin@gnome.org>
683 * ArrayList.cs: Made count, capacity and dataArray the first three
684 fields in the class. They're read by the reflection library.
686 2002-05-21 Lawrence Pit <loz@cable.a2000.nl>
688 * ArrayList.cs: Fixed bug where a capacity of 0 could be reached,
689 thereby causing problems when trying to add elements.
691 2002-05-06 Duncan Mak <duncan@ximian.com>
693 * Queue.cs (TrimToSize): Implemented.
695 2002-05-05 Nick Drochak <ndrochak@gol.com>
697 * ArrayList.cs: Throw RankException when constructing from a
698 multi-dimensional array. Confirmed behavior from MS.NET
700 Thu May 2 15:18:11 CEST 2002 Paolo Molaro <lupus@ximian.com>
702 * ArrayList.cs: make mcs compile again: it's allowed to
703 call arraylist.CopyTo(array, 0) when the length of the array
706 Wed May 1 17:05:40 CEST 2002 Paolo Molaro <lupus@ximian.com>
708 * SortedList.cs: fix RemoveAt () to use the correct length in
711 2002-05-01 Nick Drochak <ndrochak@gol.com>
713 * ArrayList.cs (Add & AddRange) : Throw exceptions where needed.
715 2002/05/01 Nick Drochak <ndrochak@gol.com>
717 * ArrayList.cs (CopyTo) : Check parameters and throw exceptions
720 2002/04/30 Nick Drochak <ndrochak@gol.com>
722 * ArrayList.cs (Clear) : Throw exception if ReadOnly or FixedSize.
723 (InsertRange) : Implement.
724 (SetRange) : Implement.
726 2002-04-30 Nick Drochak <ndrochak@gol.com>
728 * ArrayList.cs (TrimToSize) : Implement.
730 2002-04-28 Duncan Mak <duncan@ximian.com>
732 * ArrayList.cs (InsertRange):
735 (TrimToSize): Throw exceptions where needed.
737 2002-04-29 Nick Drochak <ndrochak@gol.com>
739 * Hashtable.cs (CopyTo): Throw exceptions where needed.
741 2002-04-28 Duncan Mak <duncan@ximian.com>
743 * ArrayList.cs (ReadOnly):
744 (IList.ReadOnly): Implemented.
747 (IList.Synchronized): Implemented.
750 (IList.FixedSize): Implemented.
752 2002-03-24 Duncan Mak <duncan@ximian.com>
754 * SortedList.cs (Synchronized): Stubbed out a missing method
755 pointed out by Jakk Simm's test suite.
757 2002-03-14 Nick Drochak <ndrochak@gol.com>
759 * ArrayList.cs (FixedSize(ArrayList)): should return an ArrayList. The
760 other FixedSize() methods returns an IList.
762 2002-03-13 Duncan Mak <duncan@ximian.com>
764 * ArrayList.cs (FixedSize): Changed the return type to IList if
765 the argument is an IList.
766 (Synchronized): Ditto here.
768 2002-03-08 Sergey Chaban <serge@wildwestsoftware.com>
770 * Hashtable.cs: Fixed ToPrime () bug. Removed ALLOC_GRAIN.
771 Removed unused code from static constructor.
772 GetObjectData () - Version is the same as modificationCount.
774 2002-02-20 Nick Drochak <ndrochak@gol.com>
776 * ArrayList.cs: Add MonoTODO's where necessary. Fix bugs discovered
777 by Bucky's tests. Implement a couple of things that were left undone.
779 Mon Feb 11 19:49:25 CET 2002 Paolo Molaro <lupus@ximian.com>
781 * ArrayList.cs: Dick's fix to contructor.
783 2002-02-07 Duncan Mak <duncan@ximian.com>
785 * Hashtable.cs: Implemented parts of the ISerializable
786 interface. GetObjectData () is good, but serialization constructor
787 needs some more love.
789 Sat Jan 5 15:56:54 CET 2002 Paolo Molaro <lupus@ximian.com>
791 * Hashtable.cs: the IDictionaryEnumerator returns DictionaryEntries.
793 2002-01-04 Ravi Pratap <ravi@ximian.com>
795 * Correct name to MonoTODO everywhere.
797 2002-01-04 Ravi Pratap <ravi@ximian.com>
799 * ArrayList.cs : Setting an index does not implicitly
800 extend the arraylist : remove FIXME.
802 Decorate incomplete elements with the TODO attribute.
804 * BitArray.cs : Insert TODO attributes where appropriate.
806 * CaseInsensitiveHashcodeProvider.cs: Ditto.
808 * Hashtable.cs, SortedList.cs : Ditto.
810 Thu Dec 13 20:17:08 CET 2001 Paolo Molaro <lupus@ximian.com>
812 * ArrayList.cs: implemented AddRange(), CopyTo().
814 2001-11-19 Miguel de Icaza <miguel@ximian.com>
816 * DictionaryBase.cs: Implemented.
818 Wed Nov 14 16:45:49 CET 2001 Paolo Molaro <lupus@ximian.com>
820 * ArrayList.cs: implement ArrayListEnumerator.
821 * Hashtable.cs: hardcode the prime number table.
823 2001-11-06 Nick Drochak <ndrochak@gol.com>
824 * Queue.cs: Fixes from Ricardardo. QueueTest also updated.
826 2001-11-04 Nick Drochak <ndrochak@gol.com>
827 * Queue.cs: Fixed small syntax errors that were preventing the compile.
828 I changed the build file to include Queue.cs as well.
830 2001-11-04 Nick Drochak <ndrochak@gol.com>
831 * ArrayList.cs: Fixed "off by one" error when shifting left the array when
834 * CollectionBase.cs: Added OnValidate(), OnRemove() and OnRemoveComplete()
835 hook methods to the RemoveAt() method.
837 2001-11-04 Nick Drochak <ndrochak@gol.com>
838 * ArrayList.cs: Added private enumerator class and make GetEnumerator()
839 methods return an instance of it.
841 Tue Sep 25 18:52:48 CEST 2001 Paolo Molaro <lupus@ximian.com>
843 * ArrayList.cs: fix Insert () to check capacity, not count.
845 Tue Sep 25 16:54:54 CEST 2001 Paolo Molaro <lupus@ximian.com>
847 * DictionaryEntry.cs: added.
849 2001-08-10 Dietmar Maurer <dietmar@ximian.com>
851 * common.src: removed duplicate entries
853 2001-08-08 Nick Drochak <ndrochak@gol.com>
855 * ReadOnlyCollectionBase.cs: Initialized private member.
856 * CollectionBase.cs: Initialized private member.
857 * common.src : Added ReadOnlyCollectionBase.cs and CollectionBase.cs
858 * /mcs/class/makefile: Used $(SYSTEMROOT) instead of hard coded //c/winnt
859 * /mcs/makefile: Used $(SYSTEMROOT) instead of hard coded //c/winnt
861 2001-08-08 Nick Drochak <nick@jobdragon.com>
863 * CollectionBase.cs: Add
864 * ReadOnlyCollectionBase.cs: Add
865 * CollectionBaseTest.cs: Add
866 * ReadOnlyCollectionBaseTest.cs: Add
868 2001-07-31 Garrett Rooney <rooneg@electricjellyfish.net>
870 * StackTest.cs: Add Test case for System.Collections.Stack.
871 Contributed by Chris Hynes <chrish@assistedsolutions.com>
873 2001-07-30 Garrett Rooney <rooneg@electricjellyfish.net>
875 * Stack.cs: Clone() doesn't need to check if it's synchronized, since
876 we override it in SyncStack anyway...
878 * Stack.cs: Pop() now shrinks the array if we drop below 1/4 full, to
879 avoid using massive amounts of memory that are not necessary. We only
880 drop to half the current size, which I hope will avoid the 'ping-pong'
883 * Stack.cs: SyncStack.IsReadOnly should return stack.IsReadOnly
884 instead of just returning false, since we may have a ReadOnly wrapper
885 in the future (although i can't imagine why). Thanks to David
886 Menestrina <dmenest@yahoo.com> for pointing this out.
888 2001-07-23 Sergey Chaban <serge@wildwestsoftware.com>
890 * Hashtable.cs: Fixed bug in Clear(), the Count wasn't zeroed.
891 From now, Clear() increases modification count.
892 Fixed HCP bug in GetHash(object) - hcp.GetHashCode() was used
893 instead of hcp.GetHashCode(key). This was resulted in the
894 insanely long lookup times when HashCodeProvider was used to
895 construct Hashtable. Added thread-safe wrapper.
897 2001-07-16 David Menestrina <dmenest@yahoo.com>
900 * BitArrayTest.cs: Add
902 2001-07-18 Miguel de Icaza <miguel@ximian.com>
904 * IDictionary.cs (Collections): IDictionary implements ICollection
905 as well. Thanks Sergey!
907 2001-07-18 Garrett Rooney <rooneg@electricjellyfish.net>
909 * Stack.cs Removed unnecessary locking from many methods of
910 SyncStack, removed SyncEnumerator because it was unnecessary,
911 added a modCount member to Stack and Stack.Enumerator, to
912 ensure that the Stack has not been modified out form under the
913 Enumerator, and changed the Enumerator to use a reference to the
914 stack rather than copying over the contents array.
916 2001-07-17 David Menestrina <dmenest@yahoo.com>
918 * Added implementation of BitArray.
920 2001-07-17 Miguel de Icaza <miguel@ximian.com>
922 * Hashtable.cs: Removed call to d.Count in the Hashtable
923 constructor that takes an IDictionary as IDictionary does not
924 provide a Count field.
926 2001-07-15 Sean MacIsaac <macisaac@ximian.com>
928 * IDictionary.cs: Clear was clear.
930 2001-07-13 Miguel de Icaza <miguel@ximian.com>
932 * All files: Renamespace things to System.
934 2001-07-05 Vladimir Vukicevic <vladimir@ximian.com>
936 * ArrayList.cs: initial checkin and implementation
938 * ICollection.cs, IComprarer.cs, IDictionary.cs,
939 IDictionaryEnumerator.cs, IEnumerable.cs, IHashCodeProvider.cs,
940 IList.cs: initial checkin