merge -r 60439:60440
[mono.git] / mcs / class / System / System.Collections.Specialized / ChangeLog
1 2006-04-04  Atsushi Enomoto  <atsushi@ximian.com>
2
3         * BitVector32.cs : oops those operators are for BitVector32.Section,
4           not BitVector32 itself.
5
6 2006-04-04  Atsushi Enomoto  <atsushi@ximian.com>
7
8         * BitVector32.cs : added operator== and != in 2.0.
9
10 2006-03-11  Miguel de Icaza  <miguel@novell.com>
11
12         * IOrderedDictionary.cs: Flag GetEnumerator as a "new" method to
13         avoid warning.
14
15 2005-11-30  Sebastien Pouliot  <sebastien@ximian.com> 
16  
17         * OrderedDictionary.cs: OnDeserialization is protected virtual (not 
18         private).
19
20 2005-11-30  Sebastien Pouliot  <sebastien@ximian.com>
21
22         * BitVector32.cs: Fixed 2.0 API changes and this[int] setter under 2.0
23         * HybridDictionary.cs: Fixed Contains different behaviour under 2.0.
24         * IOrderedDictionary.cs: Added missing GetEnumarator to the interface.
25         * NameObjectCollectionBase.cs: Fixed 2.0 API changes and 
26         serialization.
27         * NameValueCollection.cs: Fixed 2.0 API changes.
28         * OrderedDictionary.cs: Fixed API changes, serialization and this[int]
29         setter.
30         * StringDictionary.cs: Added missing null checks.
31
32 2005-10-26  Raja R Harinath  <rharinath@novell.com>
33
34         * HybridDictionary.cs (is_list): Remove.
35         (inner): Remove 'set' accessor.
36         (HybridDictionary, Switch): Initialize 'list' and 'hashtable' directly.
37
38 2005-10-26  Svetlana Zholkovsky  <svetlanaz@mainsoft.com>
39
40         * NameObjectCollectionBase.cs
41       ListDictionary.cs
42       HybridDictionary.cs
43       Fix serialization compatibility with .NET
44
45 2005-09-01  Raja R Harinath  <rharinath@novell.com>
46
47         * NameValueCollection.cs (Add): Add a key from the other
48         collection even if its associated value list is empty.
49         Fix regression introduced by last change.
50
51 2005-08-30  Jackson Harper  <jackson@ximian.com>
52
53         * NameValueCollection.cs: Don't crash when we have empty
54         collections.
55
56 2005-08-19  Jb Evain  <jbevain@gmail.com>
57
58         * NameObjectCollectionBase (GetEnumerator):
59                 Use the virtual modifier only in 2.0 profile.
60
61 2005-08-03  Raja R Harinath  <rharinath@novell.com>
62
63         * ListDictionary.cs: Rewrite to reduce key comparison overhead.
64         Unify all list traversals into FindEntry.
65         (AreEqual): Remove.
66         (FindEntry): Split into two duplicate loops, one when comparer ==
67         null, the other when it isn't.  Add new out parameter that points
68         to the entry preceding the result.
69         (Add, AddImpl, this []): Update.
70         (Remove): Use FindEntry for traversal.
71         (CopyTo): Add more tests.
72         (ListEntryEnumerator): Simplify.
73         (ListEntryCollection, ListEntryCollectionEnumerator): Likewise.
74
75         * HybridDictionary.cs: Rewrite to avoid a test on each operation.
76         (list, hashtable): Remove.
77         (inner): New IDictionary field that can hold either a list
78         dictionary or a hashtable.
79         (is_list): New.  Notes whether 'inner' holds a list dictionary or not.
80         (Clear): Don't change a hashtable to a list dictionary.
81
82 2005-07-25  Lluis Sanchez Gual <lluis@novell.com>
83
84         * NameObjectCollectionBase.cs: Don't throw an exception in
85         OnDeserialization if infoCopy has not been set, which means that
86         the serialization constructor has not been called, because
87         a subclass may completely override that constructor.
88         This fixes bug #75607.
89
90 2005-05-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
91
92         * ProcessStringDictionary.cs: PlatformID for 2.0.
93
94 2005-05-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
95
96         * NameObjectCollectionBase.cs: after 1.0, this uses DefaultInvariant for
97         the hash code provider and comparer, as Ben said.
98
99 2005-05-05  Lluis Sanchez Gual <lluis@novell.com>
100
101         * OrderedDictionary.cs: Don't crash when removing an item
102         that is not in the dictionary.
103
104 2005-05-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
105
106         * ProcessStringDictionary.cs: on non-windows system, don't make the
107         hashtable case-insensitive. Fixes bug #74796.
108
109 2005-03-23  Lluis Sanchez Gual <lluis@novell.com>
110
111         * OrderedDictionary.cs: Fix bug in item setter.
112
113 2005-03-04  Lluis Sanchez Gual <lluis@novell.com>
114
115         * OrderedDictionary.cs: Implemented.
116
117 2004-08-16  Duncan Mak  <duncan@ximian.com>
118
119         * NameObjectCollectionBase.cs: Fix line endings. It's mostly in
120         DOS endings, so I left it at that.
121         (GetEnumerator): Made virtual.
122
123 2004-06-14  Sebastien Pouliot  <sebastien@ximian.com>
124
125         * HybridDictionary.cs: Fixed Contains for null argument (again). Return
126         false when dictionary is empty or else throw an ArgumentNullException.
127         * NameObjectCollectionBase.cs: Now use IComparer to compare keys. This
128         completes a TODO and fix Remove in NameValueCollection.
129         * NameValueCollection.cs: Added missing Rank check in CopyTo (Array,
130         int).
131
132 2004-06-05  Sebastien Pouliot  <sebastien@ximian.com>
133
134         * HybridDictionary.cs: Fixed Contains for null argument.
135         * NameValueCollection.cs: Fixed Set to remove existing values. Fixed
136         Add(NVC) to throw same exception as MS implementation.
137
138 2004-05-24  Lluis Sanchez Gual  <lluis@ximian.com>
139
140         * StringCollection.cs: Renamed internal variable to make serialization
141           compatible with MS.NET.
142
143 2004-03-23  Gonzalo Paniagua Javier <gonzalo@ximian.com>
144
145         * ListDictionary.cs: mark ListEntry as serializable. Thanks to Jan
146         Jaros.
147
148 2004-03-15  Gonzalo Paniagua Javier <gonzalo@ximian.com>
149
150         * ProcessStringDictionary.cs: the same as StringDictionary, but
151         doesn't turn keys into lowercase.
152
153 2003-11-18  Todd Berman <tberman@gentoo.org>
154
155         * IOrderedDictionary.cs: new v2 interface
156
157 2003-10-21  Gonzalo Paniagua Javier <gonzalo@ximian.com>
158
159         * NameObjectCollectionBase.cs: added serialization support.
160
161 2003-09-04  Duncan Mak  <duncan@ximian.com>
162
163         Patches from Alon Gazit <along@mainsoft.com>.
164
165         * BitVector32.cs (CreateSection): Check that the new
166         calculated offset isn't more than 32 and not that the sum of the
167         new offset and the number of set bits is more than 32.
168         (this): Perform bitwise and with the complement of the mask
169         shifted version (~(section.Mask << section.Offset)) and not with
170         the shifted version of the mask's complement (~section.Mask <<
171         section.Offset).
172         (this): Currently doesn't return the correct value when the data
173         in the BitVector32 instance is negative.
174         
175         * ListDictionary.cs (CopyTo): If the array is null, it should
176         throw ArgumentNullException. If the index is less than 0, it
177         should throw ArgumentOutOfRangeException.
178         (Remove): Throw ArgumentNullException when the parameter is null.
179
180 2003-07-17  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
181
182         * StringDictionary.cs: Reworked attributes based on the new Consts scheme
183
184 2003-07-10  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
185
186         * NameObjectCollectionBase.cs: Implemented a few missing methods, fixed public signatures
187
188 2003-07-09  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
189
190         * NameObjectCollectionBase.cs: Fixed signature to be CLSCompliant, changed/corrected header
191         * StringCollection.cs: Improved implementation (should perform better)
192
193 2003-07-02  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
194
195         * BitVector32.cs: Implemented missing method
196         * NameValueCollection.cs: Fixed public signature, Styleguidelined header
197         * StringDictionary.cs: Added missing attribute, fixed visibilities
198
199 2003-06-08  Ben Maurer <bmaurer@users.sourceforge.net>
200         * StringCollection.cs: Rewrote. Now uses ArrayList. Fixes up quite
201         a few Rotor bugs.
202
203 2003-03-03  Miguel de Icaza  <miguel@ximian.com>
204
205         * NameValueCollection.cs: Uncoment constructor, an old MCS bug
206         prevented this from working.  Removed test for nullitude of col,
207         as it would have aborted anyways on the dereference in the base
208         constructor call. 
209
210 2003-01-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
211
212         * StringCollection.cs: fixed range checks in CopyTo.
213
214 2002-11-06  Daniel Stodden <stodden@in.tum.de>
215
216         * ListDictionary.cs:
217                 - Filled in missing CopyTo()s.
218                 - No, overwriting an entry should not change the Count <:)
219
220 2002-10-31  Gonzalo Paniagua Javier <gonzalo@ximian.com>
221
222         * NameValueCollection.cs: fixed Add (NameValueCollection).
223
224 2002-09-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
225
226         * StringCollection.cs: fixes bug #29791. Thanks to Marcus Urban
227         (mathpup@mylinuxisp.com).
228
229 2002-07-22  Tim Coleman <tim@timcoleman.com>
230         * NameObjectCollectionBase.cs: added iterator stubb to 
231                 NameObjectCollectionBase.KeysCollection
232
233 2002-07-05  Gonzalo Paniagua Javier <gonzalo@ximian.com>
234
235         * HybridDictionary.cs:
236         (Remove): fixed. The value is either in the list or in the hash.
237
238 2002-06-24  Andrew Birkett <adb@tardis.ed.ac.uk>
239
240         * BitVector32.cs: Implemented 'set' section indexer.  Check for
241         overly large sections.  Factored out some helper methods. 
242
243 2002-05-11  Lawrence Pit <loz@cable.a2000.nl>
244
245         * NameValueCollection.AsStringArray: fixed ArgumentNullException bug.
246
247 2002-05-10  Lawrence Pit <loz@cable.a2000.nl>
248
249         * HybridDictionary.cs: implemented
250         * CollectionsUtil.cs: implemented
251         * BitVector32.cs: implemeneted
252         * Modified signature of method ListDictionary.GetEnumerator 
253
254 Fri Feb 8 18:02:50 CET 2002 Paolo Molaro <lupus@ximian.com>
255
256         * NameObjectCollectionBase.cs, NameValueCollection.cs: tweaks to make
257         it compile and provide the constructor needed by nunitcore.
258
259 2002-01-05  Ravi Pratap  <ravi@ximian.com>
260
261         * BitVector32.cs, ListDictionary.cs : MonoTODO everywhere!
262
263         * NameObjectCollectionBase.cs, NameValueCollection.cs : Ditto.
264
265 2001-08-24  Nick Drochak  <ndrochak@gol.com>
266         * NameObjectCollectionBase.cs: Add stub implementation
267         * common.src: Add NameObjectCollectionBase to the build
268         * NameValueCollection.cs: add 'override' to CopyTo().  Maybe
269                 this code actually belongs in the superclass.
270
271 2001-08-24  Miguel de Icaza  <miguel@ximian.com>
272
273         * common.src: Add NameValueCollection.cs to the build
274
275 2001-08-22      John Barnette   <jbarn@httcb.net>
276         * StringDictionary.cs:
277                 Initial working implementation.
278         * ListDictionary.cs:
279                 Initial working implementation.
280
281 2001-07-17      John Barnette   <jbarn@httcb.net>
282         * StringCollection.cs:
283                 Implemented and working according to spec.
284         * StringIterator.cs:
285                 (ADDED) Implemented and working according to spec.
286         * StringCollectionTest.cs:
287                 (ADDED) Initial revision contains 17 tests; all of 'em
288                 run correctly.  More complicated tests to follow.
289
290 2001-07-15  Sean MacIsaac  <macisaac@ximian.com>
291
292         * StringCollection.cs: Added so that CodeDom.* would compile.
293