1 2006-12-29 Marek Safar <marek.safar@gmail.com>
3 * BitArray.cs: Performance improvements.
5 2006-11-16 Miguel de Icaza <miguel@novell.com>
7 * Hashtable.cs: Serialize EqualityComparer.
9 2006-08-16 Miguel de Icaza <miguel@novell.com>
11 * Hashtable.cs (PutImpl): Do not access the table twice, only
14 (TestPrime): optimize, take the sqrt out of the loop.
16 2006-08-08 Duncan Mak <duncan@novell.com>
18 * ReadOnlyCollectionBase.cs (Count): Mark as virtual in
19 NET_2_0. Fixes #79033.
21 2006-04-26 Atsushi Enomoto <atsushi@ximian.com>
23 * Comparer.cs : changed internal field from CultureInfo to
24 CompareInfo. This cosmetic change should fix bug #77701.
26 2006-03-28 Marek Safar <marek.safar@seznam.cz>
28 * Stack.cs: Changed ctor to allocate only requested memory.
30 Tue Feb 28 14:16:25 CET 2006 Paolo Molaro <lupus@ximian.com>
32 * BitArray.cs: reintroduce optimization carelessly removed by
35 2006-02-03 Sebastien Robitaille <sebastien.robitaille@croesus.com>
37 * BitArray.cs: Renamed members for interoperability with MS.
39 Tue Jan 24 18:24:00 CET 2006 Paolo Molaro <lupus@ximian.com>
41 * BitArray.cs: optimize bit access by removing expensive
44 2006-01-04 Sebastien Pouliot <sebastien@ximian.com>
46 * Hashtable.cs: Mark all inner classes as [Serializable] to match MS
47 behaviour. Fix bug #76300.
49 2005-12-19 Sebastien Pouliot <sebastien@ximian.com>
51 * ArrayList.cs: Fix default capacity under 2.0 (and unit tests under
54 2005-12-07 Sebastien Pouliot <sebastien@ximian.com>
56 * SortedList.cs: Removed check for IComparable in ctor (fixed bug
57 #76750). Removed unused private method. Added more useful info (the
58 duplicate key) to an exception.
60 2005-12-06 Sebastien Pouliot <sebastien@ximian.com>
62 * CaseInsensitiveHashCodeProvider: Serialization is now compatible
63 with MS. Removes the last TODO for 1.1 in this namespace :-)
65 2005-12-05 Sebastien Pouliot <sebastien@ximian.com>
67 * Comparer.cs: Added GetObjectData method to implement ISerializable.
69 2005-09-29 Miguel de Icaza <miguel@novell.com>
71 * Add ComVisible(true) to all the classes that needed it.
73 * Removed documentation from DictionaryBase.cs and moved it to
76 * ArrayList.cs: Fixed signature for constructor, parameter names
79 * CollectionBase.cs: Add a couple of missing methods.
81 2005-09-01 Atsushi Enomoto <atsushi@ximian.com>
83 * Hashtable.cs : SyncHashtable.GetEnumerator() returned keys instead
84 of entries (DictionaryEntry). Fixed bug #75790.
86 2005-09-01 Atsushi Enomoto <atsushi@ximian.com>
88 * SortedList.cs : Even though the key/value pair being set are
89 identical to the existing one, it causes snapshot out of sync.
92 2005-07-21 Lluis Sanchez Gual <lluis@novell.com>
94 * CollectionBase.cs: Lazily create the inner list. MS.NET does
95 it and we need to do the same for the sake of serialization
96 interoperability. Fixes bug #75575.
98 2005-07-17 Florian Gross <flgr@ccan.de>
100 * ArrayList.cs: pass along index offset in RangedArrayList:ToArray.
103 2005-06-23 Ben Maurer <bmaurer@ximian.com>
105 * Queue.cs: Use the enumerator rather than copy to in the
106 ctor. This makes us more compat with msft, for example, when
111 2005-06-23 Martin Baulig <martin@ximian.com>
113 * IKeyComparer.cs: Removed.
115 2005-06-12 David Waite <dwaite@gmail.com>
117 * Hashtable.cs: make prime-related functions internal so generic
118 Dictionary can use them.
119 * IEqualityComparer.cs: add non-generic IEqualityComparer interface
121 2005-06-06 Zoltan Varga <vargaz@freemail.hu>
123 * Hashtable.cs: Add some missing 2.0 attributes.
125 2005-05-26 Ben Maurer <bmaurer@ximian.com>
127 * Queue.cs (grow): fix 61919.
129 2005-05-09 Atsushi Enomoto <atsushi@ximian.com>
131 * Stack.cs : empty_stack.CopyTo(empty_array, 0) should be allowed.
133 2005-02-21 Zoltan Varga <vargaz@freemail.hu>
135 * Hashtable.cs: Add net 2.0 ReliabilityContractAttributes.
137 2005-02-19 Kazuki Oikawa <kazuki@panicode.com>
139 * SortedList.cs, Stack.cs: Reverse the order in the Equals calls.
141 2004-12-21 Ben Maurer <bmaurer@ximian.com>
143 * Hashtable.cs (get_Item): duplicate Find here, as we can
144 specialize a few things. This gives me 7% back.
145 (Find) Use break rather than return -1. Saves a bit of code.
147 * Hashtable.cs (GetHash): Avoid a method call. Also, don't store
148 the this.hcpRef in a variable. This will create another register
149 which must be pushed on the stack. It is better to just reference
150 the variable again. hcpRef.GetHashCode (key) is the slow path
151 anyways, so an extra variable reference here doesn't hurt
154 This gives me a few % back in a raw benchmark.
156 2004-12-20 Ben Maurer <bmaurer@ximian.com>
158 * Hashtable.cs (Find): Some minor optimizations here.
160 * Hashtable.cs: Remove GetImpl and inline it.
162 * Hashtable.cs (Find): Before calling KeyEquals, check to see if k
163 == key (ie, they are the same pointer). In many cases, this will
164 avoid two virtual calls. This gives me 1% on mcs bootstrap (!!!!)
166 * Hashtable.cs (Find): Make `i' a uint rather than an int. This
167 avoids having a long compare.
169 2004-12-16 Lluis Sanchez Gual <lluis@novell.com>
171 * Hashtable.cs: Check for null serialization info in OnDeserialization.
172 A hashtable subclass can fully override the constructor, so
173 serializationInfo would be null in this case. Fixes bug #70698.
175 2004-12-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
177 * ArrayList.cs: don't initialize _items twice. Closes bug #70620.
179 2004-12-16 Lluis Sanchez Gual <lluis@novell.com>
181 * Hashtable.cs: Add deserialized elements in OnDeserialization, since
182 when the serialization constructor is called, some of the elements
183 may not yet be fully deserialized. This fixes bug #70570.
185 2004-10-08 Raja R Harinath <rharinath@novell.com>
187 * CaseInsensitiveHashCodeProvider.cs (GetHashCode): When culture
188 is not invariant, avoid an icall on every character.
190 2004-07-21 Geoff Norton <gnorton@customerdna.com>
192 * Hashtable.cs: lock the SyncRoot when Cloning a Synchronized hashtable to avoid
193 a snapshot out of sync error.
195 2004-07-21 Duncan Mak <duncan@ximian.com>
197 * DictionaryBase.cs: Rename the dictionary field to hashtable,
198 which causes a serialization interop bug. Fixes bug #61721.
200 2004-06-18 Ben Maurer <bmaurer@ximian.com>
202 * IKeyComparer.cs: v2 class
204 2004-06-15 Gert Driesen <drieseng@users.sourceforge.net>
206 * CaseInsensitiveComparer.cs: added TODO for serialization
207 * CaseInsensitiveHashCodeProvider.cs: added TODO for serialization
208 * SortedList.cs: added TODO for serialization
209 * Stack.cs: added TODO for serialization
211 2004-06-14 Sebastien Pouliot <sebastien@ximian.com>
213 * Hashtable.cs: Compare index and length in CopyTo only when length > 0.
215 2004-06-14 Lluis Sanchez Gual <lluis@ximian.com>
217 * ArrayList.cs: Avoid endless loop in Insert when the current size is 0.
219 2004-06-08 Lluis Sanchez Gual <lluis@ximian.com>
221 * ReadOnlyCollectionBase.cs: Renamed internal variable to make serialization
222 compatible with MS.NET.
224 2004-06-01 Sebastien Pouliot <sebastien@ximian.com>
226 * SortedList.cs: Fixed case where the initial capacity was set to 0.
228 2004-05-31 Sebastien Pouliot <sebastien@ximian.com>
230 * Hashtable.cs: Added ArgumentNullException in GetObjectData.
232 2004-05-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
235 * Comparer.cs: reverted last 2 patches from Gert Driesen. Totally wrong.
238 2004-05-29 Gert Driesen (drieseng@users.sourceforge.net)
240 * Compare.cs: ISerializable should only be implemented
243 2004-05-29 Gert Driesen (drieseng@users.sourceforge.net)
245 * Compare.cs: Implemented ISerializable, fixes public API
247 2004-05-27 Sebastien Pouliot <sebastien@ximian.com>
249 * Hashtable.cs: Cloned synchronized Hashtables are now synchronized.
250 * Queue.cs: Fixed case where we could still get Current after the last
251 MoveNext. Fixed Count for Queue.Synchronize (Queue.Synchronize (q)).
252 * SortedList.cs: Added missing ICloneable support to internal
253 enumerator. Added Capacity to the synchronized version of SortedList.
254 Setting Capacity to 0 returns it to it's default value (16).
256 2004-05-26 Sebastien Pouliot <sebastien@ximian.com>
258 * ArrayList.cs: Fixed possible integer overflows.
260 2004-05-24 Lluis Sanchez Gual <lluis@ximian.com>
262 * Hashtable.cs: Renamed internal class to make serialization compatible
265 2004-05-10 Gert Driesen (drieseng@users.sourceforge.net)
266 * Hashtable.cs: marked EnumeratorMode private
267 * SortedList.cs: marked EnumeratorMode private
269 2004-05-01 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
271 * Comparer.cs: ensure culture is set to null , removed
272 static constructor, removed unneccesary checks
274 2004-05-01 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
276 * CaseInsensitiveComparer.cs: Fix the default constructor (needs to
277 set CurrentCulture, ensure culture is set to null for invariant case,
279 * Comparer.cs: Restyle, change lineendings
281 2004-05-01 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
283 * CaseInsensitiveHashCodeProvider.cs
284 * CaseInsensitiveComparer.cs: Change lineendings
285 * CaseInsensitiveComparer.cs: Restyle
287 2004-05-01 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
289 * BitArray.cs: Fix parameter names
290 * CaseInsensitiveHashCodeProvider.cs: Fix signature
291 * DictionaryEntry.cs: Fix parameter names
292 * Hashtable.cs: Fix signatures
293 * SortedList.cs: Fix signatures
295 2004-04-25 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
297 * CaseInsensitiveHashCodeProvider.cs: Fix the default constructor (needs to
298 set CurrentCulture, Add null check to other constructor, Call correct function
299 for invariant case, ensure culture is set to null for invariant case, removed
300 static constructor, made invariant version available as internal in .Net 1.0
302 2004-04-21 Lluis Sanchez Gual <lluis@ximian.com>
304 * CaseInsensitiveHashCodeProvider.cs: If the culture is null, don't use
305 Char.ToLower(c,culture), since it does not accept null as culture.
307 2004-04-20 Lluis Sanchez Gual <lluis@ximian.com>
309 * Queue.cs: Renamed internal membesr to match MS.NET (to allow serialization
310 interoperability). I also had to make some changes in the implementation:
311 I added a field _tail that points at the first free position in the array, and
312 changed the type of growFactor, which is now an int (its value is the old
315 2004-04-19 Lluis Sanchez Gual <lluis@ximian.com>
317 * Comparer.cs: Made constructor public.
319 2004-03-30 Lluis Sanchez Gual <lluis@ximian.com>
321 * CaseInsensitiveHashCodeProvider.cs: Use the CultureInfo of the calling
322 thread, not the one of the thread that created the instance.
323 * Comparer.cs: Added DefaultInvariant property and missing constructor.
324 Use the specified culture info to compare strings.
326 2004-03-30 Lluis Sanchez Gual <lluis@ximian.com>
328 * CaseInsensitiveHashCodeProvider.cs: Added support for CultureInfo.
329 Implemented property DefaultInvariant.
331 2004-03-29 Lluis Sanchez Gual <lluis@ximian.com>
333 * CollectionBase.cs: Renamed internal arraylist member to match MS.NET
334 (to allow serialization interoperability).
336 2004-03-18 David Sheldon <dave-mono@earth.li>
338 * Hashtable.cs: Serialise/Deserialise to two arrays of
339 keys/values. This will match what MS.NET appears to be
342 2004-02-12 Jackson Harper <jackson@ximian.com>
344 * SortedList.cs: Only .et 1.0 sets the capacity to a min of
347 2004-01-13 Lluis Sanchez Gual <lluis@ximian.com>
349 * Hashtable.cs: Added serialization support to SynchedHashtable. This
352 2004-01-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
354 * Hashtable.cs: fix Clone. Closes bug #52740. Patch by Benjamin Jemlich
357 2003-12-26 Ben Maurer <bmaurer@users.sourceforge.net>
359 * ArrayList.cs: Add class `SimpleEnumerator' this handles the
360 .GetEnumerator We are able to remove fields by doing this, the
361 sizeof the simple version is 75% of that of the complex one, so we
362 get a pretty nice saving.
364 2003-12-23 Lluis Sanchez Gual <lluis@ximian.com>
366 * ArrayList.cs: Renamed private fields m_Count, m_Data and
367 m_StateChanges to _size, _items and _version, to make it compatible with
368 MS.NET (needed for remoting interoperability). This fixes bug #52438.
370 2003-12-01 Dick Porter <dick@ximian.com>
372 * CaseInsensitiveComparer.cs: Construct the default comparers when
373 they're needed, to avoid a dependency loop with CultureInfo's
376 2003-12-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
378 * Queue.cs: patch from Carlos Barcenilla.
380 - method: ICollection.Clone()
381 - Optimized. Removed unneeded instructions.
382 - method: public static Queue Synchronized (Queue queue)
383 - ArgumentNullException.ParamName must be "queue", not null.
384 - method: public virtual void TrimToSize()
385 - Must increment modCount.
387 private class SyncQueue
388 - method: public override object Clone ()
389 - Must return a synchronized (SyncStack) instance.
390 - method: public override void TrimToSize ()
393 2003-11-13 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
395 * IEnumerator.cs: Added missing attribute
397 2003-11-12 Miguel de Icaza <miguel@ximian.com>
399 * CaseInsensitiveComparer.cs: Add missing method.
401 2003-11-10 Zoltan Varga <vargaz@freemail.hu>
403 * Stack.cs: Applied patch from Carlos A. Barcenilla to fix minor
406 2003-11-03 Lluis Sanchez Gual <lluis@ximian.com>
408 * SortedList.cs: Added [Serializable] to Slot class. This fixes bug #50484.
410 2003-10-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
412 * System.Collections/Hashtable.cs: patch from Carlos A.
413 Barcenilla (barce@frlp.utn.edu.ar) that includes some fixes for
414 Hashtable + NUnit2 tests.
416 2003-10-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
418 * Queue.cs: nullify the array in Clear.
420 2003-09-26 Zoltan Varga <vargaz@freemail.hu>
422 * Hashtable.cs: Remove empty static constructor since it prevents this
423 class from being beforefieldinit.
425 2003-08-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
427 * CaseInsensitiveHashCodeProvider.cs: small speed improvement.
429 2003-08-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
431 * Stack.cs: patch by JoergR@voelcker.com (Joerg Rosenkranz) that fixes
434 2003-08-20 Duncan Mak <duncan@ximian.com>
436 * Hashtable.cs (PutImpl): Fix my previous checkin, see details
437 posted on bug #47692.
439 I really hope I don't mess up this time, because, if I do again,
440 it will be really embarrassing.
442 2003-08-17 Duncan Mak <duncan@ximian.com>
444 * Hashtable.cs (PutImpl): Patch from Luca Barbieri <lb@lb.ods.org>.
445 Currently Hashtable.PutImpl has an incorrect test which causes the
446 key chain search to terminate as soon as a free slot is found,
447 causing key duplication.
449 This fixes bug #47692.
451 2003-08-11 Duncan Mak <duncan@ximian.com>
453 * DictionaryBase.cs: Applied patch from Carlos Barcenilla
454 (barce@frlp.utn.edu.ar).
456 (Idictionary.Add): Added OnValidate, and undo the transaction if
457 OnInsertCompleteFails.
459 (Indexer set): MS Implementation does not call OnInsert and undoes
460 if OnSetComplete throws an exception
461 (Indexer get): return value is obtained after calling OnGet.
463 (IDictionary.Remove): Call to OnValidate added. If key does not
464 exists calls OnValidate, OnRemove and OnRemoveComplete.
466 (protected IDictionary Dictionary get): Should return itself, not
469 This fixes bug #47460.
471 2003-08-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
473 * CollectionBase.cs: applied patch from Carlos Barcenilla
474 (barce@frlp.utn.edu.ar).
476 2003-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
478 * ArrayList.cs: added / so that gvim syntax highlight doesn't go crazy.
479 * CollectionBase.cs: fixed several bugs reported by Carlos Barcenilla
480 (barce@frlp.utn.edu.ar). Most of the patch is also his.
482 2003-07-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
484 * ArrayList.cs: fixed EnsureCapacity when m_Data.Length is 0.
486 2003-07-29 Miguel de Icaza <miguel@ximian.com>
488 * ArrayList.cs: Deployed ArrayList from Tum; Fixed iterator to
489 allow nulls, and inline a few calls to make profiling more useful.
491 2003-07-24 Miguel de Icaza <miguel@ximian.com>
493 * ArrayList.cs: Removed MonoTODO.
495 2003-07-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
497 * Hashtable.cs: made SynchedHashtable serializable. Fixes bug #45918.
498 Thanks to JoergR@voelcker.com (Joerg Rosenkranz).
500 2003-06-27 Duncan Mak <duncan@ximian.com>
502 * Hashtable.cs: Patch from PAF@design.ru, GetEnumerator should be
503 returning DictionaryEntrys, instead of just the Key of the table.
505 2003-06-26 Lluis Sanchez Gual <lluis@ximian.com>
507 * Hashtable.cs: Fixed bug when serializing and deserializing
508 a hashtable from which one element has been deleted. The Object instance
509 used as a removed marker is not detected as a such, since the
510 serializer creates a different instace.
512 2003-06-13 Herve Poussineau <hpoussineau@fr.st>
514 * SortedList.cs: Can enumerate on DictionaryEntries, not only on
515 keys on values. Enumerate by default on DictionaryEntries.
517 2003-06-12 Duncan Mak <duncan@ximian.com>
519 * Hashtable.cs (constructor):
520 if loadFactor equals Single.NaN, then throw an
521 ArgumentOutOfRangeException.
523 if we set capacity to be too big (ie. capacity / loadFactor is
524 greater than Int32.MaxValue), then we throw an ArgumentException.
526 2003-06-11 Duncan Mak <duncan@ximian.com>
528 * SortedList.cs: Oi! What a mess.
530 If the list was constructed using the null-param constructor, and
531 it tries to set it to a size lower than the default, let it do so.
533 If the list was constructed with a specific size, and it tries to
534 set it to a size lower than the specified size, set it to the
537 (IndexOfValue): Clean up the code somewhat, make it allow for
540 2003-06-08 Ben Maurer <bmaurer@users.sourceforge.net>
541 * ArrayList.cs, Hashtable.cs, SortedList.cs: Enumerator fixes, error
544 2003-06-07 Ben Maurer <bmaurer@users.sourceforge.net>
545 * Stack.cs: Contains (null) works correctly. We never have the
546 array sized less than 16, so that the doubling logic works no
547 matter what. The enumerator is IClonable, like in ms. The
548 Enumerator correctly throws an exception if Current is called
549 before the enumerator is started. We now pass all the Rotor tests
552 2003-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
554 * Stack.cs: fixed Clone ().
556 2003-06-04 Ben Maurer <bmaurer@users.sourceforge.net>
557 * DictionaryEntry.cs: Throw exception if key == null. Fixes Rotor
560 2003-06-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
562 * ArrayList.cs: nullify the array in Clear ().
563 * Queue.cs: nullify the array in Dequeue ().
564 * Stack.cs: nullify the array in Pop ().
566 2003-06-02 Ben Maurer <bmaurer@users.sourceforge.net>
567 * Queue.cs: Added argument checking in constructors according to
568 specs. Also changed default size to 32 as required by the specs.
570 2003-05-31 Ben Maurer <bmaurer@users.sourceforge.net>
571 * BitArray.cs: Rewrote, as it was failing most of the Rotor
572 tests. It now passes them 100%. Also fixes bug #43667.
574 2003-05-03 Ben Maurer <bmaurer@users.sourceforge.net>
576 Made ArrayList.GetRange () make a wrapper around the array list, like Microsoft does. Fixes bug #39724.
578 2003-05-03 Ben Maurer <bmaurer@users.sourceforge.net>
580 Added methods to support IList wrappers
582 2003-04-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
584 * ArrayList.cs: patch from bernard@ugsolutions.com (Bernie Solomon)
585 that fixes bug #41684.
587 2003-04-15 Eduardo Garcia Cebollero <kiwnix@yahoo.es>
589 * CaseInsensitiveComparerTest.cs: Fixed Compare Method (now works
590 like MS.NET) and implemented the
591 CaseInsensitiveComparerTest(culture) constructor.
593 2003-03-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
595 * Queue.cs: fixed bug #39046.
597 2003-02-15 Pedro Martnez Juli <yoros@wanadoo.es>
599 * Hashtable.cs: Make hashtable serializable (at least with binary
600 formatter). This process was started by the Hashtable maintainer.
602 2003-02-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
604 * ArrayList.cs: fixed setSize (!).
606 2003-01-31 Zoltan Varga <vargaz@freemail.hu>
608 * ArrayList.cs (RemoveAt): duplicated the the code from RemoveRange
609 here, since RemoveAt raises a different exception than RemoveRange
610 when the index is out-of-range. Fixes the ArrayList unit tests.
612 * ArrayList.cs (RemoveRange): fixed indentation.
614 2003-01-12 Varga Zoltan <vargaz@freemail.hu>
616 * ArrayList.cs (RemoveRange): Patch for allowing zero-size
617 removal at the end of a list. It also cleans up the argument
618 checking code so the raised exceptions have the same message as
621 2003-01-10 Duncan Mak <duncan@ximian.com>
623 * ArrayList.cs (Insert): Patch from Zoltan
624 (Zoltan.2.Varga@nokia.com).
626 2002-10-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
628 * Hashtable.cs: add the key to the error message when
631 2002-10-15 Vladimir Vukicevic <vladimir@pobox.com>
633 * Queue.cs: update new capacity in grow(), preventing queue from
634 constantly looping over old elements in Dequeue(). Also use
635 capacity instead of contents.Length in Enqueue().
637 2002-09-24 Nick Drochak <ndrochak@gol.com>
639 * ArrayList.cs: Make enumerator throw exception if the ArrayList is
640 mutated (Insert, Delete, etc.). Also, fix bug in InsertRange() when
641 this was passed as parameter.
643 2002-08-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
645 * ArrayList.cs: fixed bug #29658.
647 2002-08-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
651 * CaseInsensitiveComparer.cs:
652 * CaseInsensitiveHashCodeProvider.cs:
654 * Queue.cs: misc. fixes based on class status page.
656 2002-07-22 Tim Coleman <tim@timcoleman.com>
657 * CaseInsensitiveHashCodeProvider.cs: Added missing constructor
658 which was breaking System.Web build on linux
660 2002-07-05 Sergey Chaban <serge@wildwestsoftware.com>
662 * SortedList.cs: Implemented thread-safe wrapper. Changed some
665 2002-07-02 Nick Drochak <ndrochak@gol.com>
667 * SortedList.cs: Constructors should use the capacity given regardless
668 how small. After a Clear() the Capacit should be 16. Since a Dictionary
669 might be used in the constructor, make sure we trap exceptions thrown
670 by the Comparer, like in Add().
672 2002-06-30 Nick Drochak <ndrochak@gol.com>
674 * SortedList.cs: Many fixed. A lot of checking for null and throwing
675 exceptions. A few logic bugs fixed as well
677 2002-06-25 Nick Drochak <ndrochak@gol.com>
679 * Queue.cs (CopyTo): Fix logic for copying the circular array.
680 (Enqueue): Use actual length of array to determine when to grow
681 (QueueEnumerator) Fixed Current to use array length, not capacity, and
682 fixed off-by-one errror in MoveNext().
684 Tue Jun 4 13:08:43 CEST 2002 Paolo Molaro <lupus@ximian.com>
686 * ArrayList.cs: fixed RemoveAt() implementation.
688 2002-05-27 Nick Drochak <ndrochak@gol.com>
690 * ArrayList.cs (LastIndexOf): Return -1 if searching for null, also
691 fix check of parameters sent to make sure we don't search beyond the
692 beginning of the list.
693 (ListWrapper): Throw exception if called with null.
694 We now pass all unit tests.
696 2002-05-23 Duncan Mak <duncan@ximian.com>
698 * ArrayList.cs (Wrapper): Preliminary implementation of
699 ArrayList.Wrapper (IList).
701 2002-05-22 Martin Baulig <martin@gnome.org>
703 * ArrayList.cs: Made count, capacity and dataArray the first three
704 fields in the class. They're read by the reflection library.
706 2002-05-21 Lawrence Pit <loz@cable.a2000.nl>
708 * ArrayList.cs: Fixed bug where a capacity of 0 could be reached,
709 thereby causing problems when trying to add elements.
711 2002-05-06 Duncan Mak <duncan@ximian.com>
713 * Queue.cs (TrimToSize): Implemented.
715 2002-05-05 Nick Drochak <ndrochak@gol.com>
717 * ArrayList.cs: Throw RankException when constructing from a
718 multi-dimensional array. Confirmed behavior from MS.NET
720 Thu May 2 15:18:11 CEST 2002 Paolo Molaro <lupus@ximian.com>
722 * ArrayList.cs: make mcs compile again: it's allowed to
723 call arraylist.CopyTo(array, 0) when the length of the array
726 Wed May 1 17:05:40 CEST 2002 Paolo Molaro <lupus@ximian.com>
728 * SortedList.cs: fix RemoveAt () to use the correct length in
731 2002-05-01 Nick Drochak <ndrochak@gol.com>
733 * ArrayList.cs (Add & AddRange) : Throw exceptions where needed.
735 2002/05/01 Nick Drochak <ndrochak@gol.com>
737 * ArrayList.cs (CopyTo) : Check parameters and throw exceptions
740 2002/04/30 Nick Drochak <ndrochak@gol.com>
742 * ArrayList.cs (Clear) : Throw exception if ReadOnly or FixedSize.
743 (InsertRange) : Implement.
744 (SetRange) : Implement.
746 2002-04-30 Nick Drochak <ndrochak@gol.com>
748 * ArrayList.cs (TrimToSize) : Implement.
750 2002-04-28 Duncan Mak <duncan@ximian.com>
752 * ArrayList.cs (InsertRange):
755 (TrimToSize): Throw exceptions where needed.
757 2002-04-29 Nick Drochak <ndrochak@gol.com>
759 * Hashtable.cs (CopyTo): Throw exceptions where needed.
761 2002-04-28 Duncan Mak <duncan@ximian.com>
763 * ArrayList.cs (ReadOnly):
764 (IList.ReadOnly): Implemented.
767 (IList.Synchronized): Implemented.
770 (IList.FixedSize): Implemented.
772 2002-03-24 Duncan Mak <duncan@ximian.com>
774 * SortedList.cs (Synchronized): Stubbed out a missing method
775 pointed out by Jakk Simm's test suite.
777 2002-03-14 Nick Drochak <ndrochak@gol.com>
779 * ArrayList.cs (FixedSize(ArrayList)): should return an ArrayList. The
780 other FixedSize() methods returns an IList.
782 2002-03-13 Duncan Mak <duncan@ximian.com>
784 * ArrayList.cs (FixedSize): Changed the return type to IList if
785 the argument is an IList.
786 (Synchronized): Ditto here.
788 2002-03-08 Sergey Chaban <serge@wildwestsoftware.com>
790 * Hashtable.cs: Fixed ToPrime () bug. Removed ALLOC_GRAIN.
791 Removed unused code from static constructor.
792 GetObjectData () - Version is the same as modificationCount.
794 2002-02-20 Nick Drochak <ndrochak@gol.com>
796 * ArrayList.cs: Add MonoTODO's where necessary. Fix bugs discovered
797 by Bucky's tests. Implement a couple of things that were left undone.
799 Mon Feb 11 19:49:25 CET 2002 Paolo Molaro <lupus@ximian.com>
801 * ArrayList.cs: Dick's fix to contructor.
803 2002-02-07 Duncan Mak <duncan@ximian.com>
805 * Hashtable.cs: Implemented parts of the ISerializable
806 interface. GetObjectData () is good, but serialization constructor
807 needs some more love.
809 Sat Jan 5 15:56:54 CET 2002 Paolo Molaro <lupus@ximian.com>
811 * Hashtable.cs: the IDictionaryEnumerator returns DictionaryEntries.
813 2002-01-04 Ravi Pratap <ravi@ximian.com>
815 * Correct name to MonoTODO everywhere.
817 2002-01-04 Ravi Pratap <ravi@ximian.com>
819 * ArrayList.cs : Setting an index does not implicitly
820 extend the arraylist : remove FIXME.
822 Decorate incomplete elements with the TODO attribute.
824 * BitArray.cs : Insert TODO attributes where appropriate.
826 * CaseInsensitiveHashcodeProvider.cs: Ditto.
828 * Hashtable.cs, SortedList.cs : Ditto.
830 Thu Dec 13 20:17:08 CET 2001 Paolo Molaro <lupus@ximian.com>
832 * ArrayList.cs: implemented AddRange(), CopyTo().
834 2001-11-19 Miguel de Icaza <miguel@ximian.com>
836 * DictionaryBase.cs: Implemented.
838 Wed Nov 14 16:45:49 CET 2001 Paolo Molaro <lupus@ximian.com>
840 * ArrayList.cs: implement ArrayListEnumerator.
841 * Hashtable.cs: hardcode the prime number table.
843 2001-11-06 Nick Drochak <ndrochak@gol.com>
844 * Queue.cs: Fixes from Ricardardo. QueueTest also updated.
846 2001-11-04 Nick Drochak <ndrochak@gol.com>
847 * Queue.cs: Fixed small syntax errors that were preventing the compile.
848 I changed the build file to include Queue.cs as well.
850 2001-11-04 Nick Drochak <ndrochak@gol.com>
851 * ArrayList.cs: Fixed "off by one" error when shifting left the array when
854 * CollectionBase.cs: Added OnValidate(), OnRemove() and OnRemoveComplete()
855 hook methods to the RemoveAt() method.
857 2001-11-04 Nick Drochak <ndrochak@gol.com>
858 * ArrayList.cs: Added private enumerator class and make GetEnumerator()
859 methods return an instance of it.
861 Tue Sep 25 18:52:48 CEST 2001 Paolo Molaro <lupus@ximian.com>
863 * ArrayList.cs: fix Insert () to check capacity, not count.
865 Tue Sep 25 16:54:54 CEST 2001 Paolo Molaro <lupus@ximian.com>
867 * DictionaryEntry.cs: added.
869 2001-08-10 Dietmar Maurer <dietmar@ximian.com>
871 * common.src: removed duplicate entries
873 2001-08-08 Nick Drochak <ndrochak@gol.com>
875 * ReadOnlyCollectionBase.cs: Initialized private member.
876 * CollectionBase.cs: Initialized private member.
877 * common.src : Added ReadOnlyCollectionBase.cs and CollectionBase.cs
878 * /mcs/class/makefile: Used $(SYSTEMROOT) instead of hard coded //c/winnt
879 * /mcs/makefile: Used $(SYSTEMROOT) instead of hard coded //c/winnt
881 2001-08-08 Nick Drochak <nick@jobdragon.com>
883 * CollectionBase.cs: Add
884 * ReadOnlyCollectionBase.cs: Add
885 * CollectionBaseTest.cs: Add
886 * ReadOnlyCollectionBaseTest.cs: Add
888 2001-07-31 Garrett Rooney <rooneg@electricjellyfish.net>
890 * StackTest.cs: Add Test case for System.Collections.Stack.
891 Contributed by Chris Hynes <chrish@assistedsolutions.com>
893 2001-07-30 Garrett Rooney <rooneg@electricjellyfish.net>
895 * Stack.cs: Clone() doesn't need to check if it's synchronized, since
896 we override it in SyncStack anyway...
898 * Stack.cs: Pop() now shrinks the array if we drop below 1/4 full, to
899 avoid using massive amounts of memory that are not necessary. We only
900 drop to half the current size, which I hope will avoid the 'ping-pong'
903 * Stack.cs: SyncStack.IsReadOnly should return stack.IsReadOnly
904 instead of just returning false, since we may have a ReadOnly wrapper
905 in the future (although i can't imagine why). Thanks to David
906 Menestrina <dmenest@yahoo.com> for pointing this out.
908 2001-07-23 Sergey Chaban <serge@wildwestsoftware.com>
910 * Hashtable.cs: Fixed bug in Clear(), the Count wasn't zeroed.
911 From now, Clear() increases modification count.
912 Fixed HCP bug in GetHash(object) - hcp.GetHashCode() was used
913 instead of hcp.GetHashCode(key). This was resulted in the
914 insanely long lookup times when HashCodeProvider was used to
915 construct Hashtable. Added thread-safe wrapper.
917 2001-07-16 David Menestrina <dmenest@yahoo.com>
920 * BitArrayTest.cs: Add
922 2001-07-18 Miguel de Icaza <miguel@ximian.com>
924 * IDictionary.cs (Collections): IDictionary implements ICollection
925 as well. Thanks Sergey!
927 2001-07-18 Garrett Rooney <rooneg@electricjellyfish.net>
929 * Stack.cs Removed unnecessary locking from many methods of
930 SyncStack, removed SyncEnumerator because it was unnecessary,
931 added a modCount member to Stack and Stack.Enumerator, to
932 ensure that the Stack has not been modified out form under the
933 Enumerator, and changed the Enumerator to use a reference to the
934 stack rather than copying over the contents array.
936 2001-07-17 David Menestrina <dmenest@yahoo.com>
938 * Added implementation of BitArray.
940 2001-07-17 Miguel de Icaza <miguel@ximian.com>
942 * Hashtable.cs: Removed call to d.Count in the Hashtable
943 constructor that takes an IDictionary as IDictionary does not
944 provide a Count field.
946 2001-07-15 Sean MacIsaac <macisaac@ximian.com>
948 * IDictionary.cs: Clear was clear.
950 2001-07-13 Miguel de Icaza <miguel@ximian.com>
952 * All files: Renamespace things to System.
954 2001-07-05 Vladimir Vukicevic <vladimir@ximian.com>
956 * ArrayList.cs: initial checkin and implementation
958 * ICollection.cs, IComprarer.cs, IDictionary.cs,
959 IDictionaryEnumerator.cs, IEnumerable.cs, IHashCodeProvider.cs,
960 IList.cs: initial checkin