ChangeLog 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399
  1. 2005-11-19 Zoltan Varga <[email protected]>
  2. * KeyNotFoundException.cs: Add default message.
  3. 2005-09-18 Miguel de Icaza <[email protected]>
  4. * Dictionary.cs: Change style for internal fields.
  5. If the capacity is zero, set the capacity to our default size as 0
  6. is an allowed parameter in .NET
  7. 2005-08-10 Kamil Skalski <[email protected]>
  8. * KeyValuePair.cs, Dictionary.cs: Change Key and Value to properties to match
  9. .NET 2.0 July CTP. Update its use in Dictionary, since now we
  10. cannot write to them.
  11. 2005-07-10 Kamil Skalski <[email protected]>
  12. * Comparer.cs, EqualityComparer.cs: Use MakeGenericType instead of BindGenericParameters.
  13. 2005-06-27 Raja R Harinath <[email protected]>
  14. Introduce some thread-safety by removing the modify-on-read
  15. move-to-front heuristic.
  16. * Dictionary.cs (_enumeratorGeneration, _enumerators): Remove.
  17. (Count): Add internal property set. Invalidate enumerators when
  18. Count is changed. Change all references of _usedSlots to Count.
  19. (this): Invalidate enumerators when the value of some slot is
  20. changed, even if the layout of the data-structure isn't modified.
  21. (DoHash): Remove null-key check. All codepaths leading to this
  22. function already have the check.
  23. (GetSlot): Remove move-to-front heuristic.
  24. (Remove): Update.
  25. 2005-06-24 Martin Baulig <[email protected]>
  26. * IDictionary.cs: Use the same type parameter names than on MS.
  27. * IDictionary.cs, Dictionary.cs: We don't need the `CLSCompliant'
  28. attribute here.
  29. 2005-06-23 Martin Baulig <[email protected]>
  30. * *.cs: Removed the `[ComVisible(false)]' attributes everywhere.
  31. 2005-06-22 Raja R Harinath <[email protected]>
  32. * Dictionary.cs (_generation, _enumeratorGeneration, _enumerators):
  33. New fields to implement fail-fast semantics. All code that
  34. modifies the table increment _generation.
  35. (GetSlot): Use _hcp to compare keys. Return the slot containing
  36. the key, rather than the index. Avoid move-to-front heuristic
  37. when there's an enumerator coursing through the table.
  38. (this, Add, TryGetValue, ContainsKey, Remove): Update to change.
  39. (Enumerator.Enumerator): Save the generation of the dictionary.
  40. (Enumerator.Dispose): Inform dictionary that the enumerator is no more.
  41. (Enumerator.MoveNext, Enumerator.VerifyState): Fail if the
  42. dictionary has been modified.
  43. 2005-06-20 David waite <[email protected]>
  44. * List.cs : substantial changes and optimizations
  45. (AddCollection, AddEnumerable): new internal specializations of AddRange
  46. (AsReadOnly): returns specific IList<T> to match ms.net 2.0b2 api.
  47. (Clear): reset size to zero on clear
  48. (ConvertAll): catch null converter, use Add to prevent OutOfBounds
  49. exception
  50. (FindAll, FindIndex, FindLast, FindLastIndex, RemoveAll, TrueForAll):
  51. check for null match
  52. (FindLastIndex): correct index parameters based on ms.net 2005b2 behavior
  53. (ForEach): catch null action
  54. (CheckIndex): new internal function similar to CheckRange for functions
  55. which only provide a starting index
  56. (InsertCollection, InsertEnumerable): new internal specializations of
  57. InsertRange
  58. (ReadOnlyList): removed, ReadOnlyCollection in
  59. System.Collections.ObjectModel is used instead now
  60. 2005-06-16 David Waite <[email protected]>
  61. * Dictionary.cs (EnumerationMode): Remove.
  62. (Enumerator): Remove return type flag - legacy return is expected to
  63. always return a DictionaryEntry
  64. (Enumerator): Make constructor internal, it is not public on ms.net
  65. beta 2
  66. (VerifyState): Added method to check state preconditions and throw
  67. appropriate exceptions.
  68. (KeyCollection,ValueCollection): Mark sealed to match ms.net beta 2
  69. (KeyCollection.Enumerator._hostEnumerator): make exact struct type,
  70. rather than boxing and using by interface
  71. (KeyCollection.Enumerator.Dispose): Call _hostEnumerator.Dispose.
  72. (ValueCollection.Enumerator._hostEnumerator): make exact struct type,
  73. rather than boxing and using by interface
  74. (ValueCollection.Enumerator.Dispose): Call _hostEnumerator.Dispose.
  75. * EqualityComparer.cs (DefaultComparer, IEquatableOfTEqualityComparer):
  76. Mark as serializable.
  77. 2005-06-16 Raja R Harinath <[email protected]>
  78. * Dictionary.cs (GetKeys, GetValues): Remove.
  79. (SetThreshold): New function to calculate the resize threshold.
  80. (CopyTo): Don't use foreach syntax.
  81. (ContainsValue): Likewise. Use default equality comparer of the
  82. value type.
  83. (GetObjectData): Use CopyTo to copy into temporary array. Don't
  84. save redundant _usedSlots and _threshold.
  85. (OnDeserialization): Rewrite.
  86. (ICollection<>.CopyTo): Forward to CopyTo.
  87. (Enumerator._nextIndex): Rename to from _index.
  88. (Enumerator._next, Enumerator.FixNext): Remove.
  89. (Enumerator.Current): Rewrite to avoid need for _next.
  90. (Enumerator.IEnumerator.Reset): Update.
  91. (KeyCollection): Is also IEnumerable<TKey> and IEnumerable.
  92. Update methods to conform to standard.
  93. (KeyCollection.GetEnumerator): Restore. Return the correct type.
  94. (KeyCollection.Enumerator): Rename from KeyEnumerator. Simple
  95. wrapper that forwards to Dictionary<,>.Enumerator.
  96. (ValueCollection): Likewise.
  97. 2005-06-12 David Waite <[email protected]>
  98. * IKeyComparer.cs: removed
  99. * KeyValuePair.cs: add same-style ToString as ms.net Beta2 impl,
  100. make Serializable, use correct field names.
  101. * Dictionary.cs: Miscelaneus clean-ups, added serialization
  102. support, use Hashtable prime functions
  103. 2005-06-12 Ben Maurer <[email protected]>
  104. * Comparer.cs, EqualityComparer.cs: Important performance hack:
  105. make sure that we don't box stuff and do reflection on every
  106. comparison. We use reflection at cctor time rather than on every
  107. request.
  108. 2005-06-09 Raja R Harinath <[email protected]>
  109. Simplify Enumerator.MoveNext to make it "obviously correct", rather
  110. than require subtle reasoning about the state of various variables.
  111. * Dictionary.cs (Enumerator._isValid): Remove. Replace all uses
  112. with "_current == null".
  113. (Enumerator._validNodeVisited): Remove.
  114. (Enumerator._next): New. Holds the the next position.
  115. (Enumerator.FixNest): New helper function that ensures that _next
  116. has the right value.
  117. (Enumerator.MoveNext): Simplify. Now, copies _next to _current
  118. and advances _next if possible.
  119. 2005-06-08 Martin Baulig <[email protected]>
  120. * Dictionary.cs (Dictionary.KeyEnumerator): Removed the public
  121. GetEnumerator() function since it's returning the wrong type.
  122. (Dictionary.ValueEnumerator): Likewise. Fix #75073.
  123. 2005-06-08 Ankit Jain <[email protected]>
  124. * Dictionary.cs (Dictionary<TKey, TValue>.MoveNext): Allow traversal of chain in last slot
  125. of the table. Fixes #75168.
  126. 2005-06-04 Ben Maurer <[email protected]>
  127. * *.cs: 2.0 api fixups
  128. 2005-05-26 Miguel de Icaza <[email protected]>
  129. * Dictionary.cs: Remove the `Hash' name from the Dictionary
  130. internal classes, make them public.
  131. 2005-05-26 Zoltan Varga <[email protected]>
  132. * Dictionary.cs: Fix a warning.
  133. * IDictionary.cs: Add missing TryGetValue method.
  134. 2005-05-19 Geoff Norton <[email protected]>
  135. * List.cs (Insert): Resize the array before the shift if needed
  136. 2005-05-18 Miguel de Icaza <[email protected]>
  137. * List.cs (GetRange): Implement.
  138. Do not do lazy loading of data. Not worth adding an
  139. extra check, and not worth the bugs.
  140. This decision wont be discussed until: a) a full List regression
  141. test suite exists and b) performance benchmarks are created. (b)
  142. depends on (a) or the argument wont even be heard.
  143. 2005-05-13 Atsushi Enomoto <[email protected]>
  144. * Queue.cs, Stack.cs: moved to System.dll
  145. 2005-05-06 Martin Baulig <[email protected]>
  146. * *.cs: Add CLSCompliant(true) where missing.
  147. 2005-05-06 Zoltan Varga <[email protected]>
  148. * *.cs: Remove CLSCompliant(false) attributes.
  149. 2005-05-05 Zoltan Varga <[email protected]>
  150. * List.cs: Applied patch from Mart Roosmaa ([email protected]).
  151. Fix Insert method. Fixes #74824.
  152. 2005-04-29 Martin Baulig <[email protected]>
  153. Reflect latest spec changes.
  154. * IEnumerable.cs (IEnumerable<T>): Implement IEnumerable.
  155. * IEnumerator.cs (IEnumerator<T>): Implement IEnumerator.
  156. 2005-04-29 Raja R Harinath <[email protected]>
  157. Remove FIXME.
  158. * Dictionary.cs (Slot<K,V>): Move to ...
  159. (Dictionary<K,V>.Slot): ... here.
  160. 2005-04-28 Martin Baulig <[email protected]>
  161. * Dictionary.cs, Queue.cs, Stack.cs, List.cs, Comparer.cs: Don't
  162. duplicate type parameters in the nested classes.
  163. 2005-04-20 Zoltan Varga <[email protected]>
  164. * List.cs: Fix ToArray () method. Fixes #74675.
  165. 2005-04-04 Raja R Harinath <[email protected]>
  166. * Dictionary.cs: Update to draft of Feb 27. Add some argument checks.
  167. (GetSlot): Don't throw KeyNotFoundException. Unify all list
  168. traversals in here. Move found key to head of chain, and return
  169. the index of the chain suitable for/containing the key.
  170. (Item, Add, Remove): Simplify, and remove FIXMEs.
  171. (Resize): Reuse linked list nodes from old table.
  172. (Dictionary.CopyTo, HashKeyCollection.CopyTo, HashValueCollection.CopyTo):
  173. Add some argument checks.
  174. 2005-04-02 Ben Maurer <[email protected]>
  175. * Dictionary.cs: Real impl.
  176. 2005-02-21 Martin Baulig <[email protected]>
  177. * IComparer.cs: Reverted the last change here, Equals() and
  178. GetHashCode() have been removed a long time ago.
  179. 2005-02-21 Kazuki Oikawa <[email protected]>
  180. * IComparer.cs, IDictionary.cs: Corrected the wrong declaration.
  181. 2005-02-11 Carlos Alberto Cortez <[email protected]>
  182. * List.cs: Added internal ReadOnlyCollection class,
  183. which is a wrapper for a read only IList<T> version of the List<T>.
  184. Used in AsReadOnly () method.
  185. 2005-02-07 Ben Maurer <[email protected]>
  186. * List.cs (CheckRange): Comparison error. Duh!
  187. (Shift): really deal with neg. delta. Also, adjust the `size'.
  188. Based on a patch from Marc Denty ([email protected]).
  189. Fixes #72258.
  190. 2005-01-29 Ben Maurer <[email protected]>
  191. * Queue.cs: `duh' bugs.
  192. 2004-12-27 Ben Maurer <[email protected]>
  193. * Stack.cs: Stupid bug fixes.
  194. * List.cs: My new (mostly untested ;-) impl of List
  195. <T>. Implements most of the API.
  196. 2004-12-26 Ben Maurer <[email protected]>
  197. * Queue.cs: New, non-linked-list based impl.
  198. 2004-11-29 Ben Maurer <[email protected]>
  199. * Comparer.cs: Update this class.
  200. 2004-11-25 Carlos Alberto Cortez <[email protected]>
  201. * List.cs: Enumerator changed to behave like the MS impl.
  202. 2004-11-25 Ben Maurer <[email protected]>
  203. * Stack.cs: New, list based impl. Waiting for some gmcs fixes.
  204. 2004-11-10 Martin Baulig <[email protected]>
  205. * IDictionary.cs (IDictionary): `IsReadOnly' and `Clear' are
  206. inherited from ICollection.
  207. 2004-09-20 Gert Driesen <[email protected]>
  208. * ReadOnlyCollection.cs: Moved to System assembly
  209. * Collection.cs: Moved to System assembly
  210. 2004-09-07 Carlos Alberto Cortez <[email protected]>
  211. * ReadOnlyCollection.cs: New file and changes to
  212. Collection.cs tu support it.
  213. 2004-09-05 Marek Safar <[email protected]>
  214. * Dictionary.cs: Added new file (no implementation).
  215. 2004-09-03 Carlos Alberto Cortez <[email protected]>
  216. * Collection.cs: Small improvements related to
  217. style, resizing, and type checking.
  218. 2004-09-01 Carlos Alberto Cortez <[email protected]>
  219. * Collection.cs: New file.
  220. 2004-08-04 Martin Baulig <[email protected]>
  221. * List.cs (List<T>.Enumerator): Made this a struct.
  222. (List<T>.GetEnumerator): The public method now returns the
  223. `Enumerator' struct.
  224. 2004-08-02 Martin Baulig <[email protected]>
  225. Started to do some API review.
  226. * ICollection.cs (ICollection<T>): Added IsReadOnly, Add, Clear,
  227. Contains and Remove.
  228. * IList.cs (IList<T>): Removed Add, Clear, Constains, Remove,
  229. IsReadOnly and IsFixedSize.
  230. 2004-08-02 Martin Baulig <[email protected]>
  231. * IList.cs (IList.Add): Changed return type to void.
  232. * List.cs (List.Add): Likewise.
  233. 2004-07-16 Martin Baulig <[email protected]>
  234. * IComparable.cs: Removed, it's in System.
  235. 2004-07-12 Duncan Mak <[email protected]>
  236. * KeyNotFoundException.cs: Added.
  237. 2004-06-18 Ben Maurer <[email protected]>
  238. * Comparer.cs: v2 impl. Some workarounds for gmcs are enabled.
  239. 2004-05-26 Sebastien Pouliot <[email protected]>
  240. * Queue.cs: Fixed possible integer overflow in CopyTo methods.
  241. * Stack.cs: Fixed possible integer overflow in CopyTo methods.
  242. 2004-03-13 Martin Baulig <[email protected]>
  243. * Stack.cs, Queue.cs, List.cs: Implement the non-generic interfaces.
  244. 2004-03-11 Martin Baulig <[email protected]>
  245. * List.cs: New file.
  246. 2004-03-11 Martin Baulig <[email protected]>
  247. * Stack.cs, Queue.cs: Just use `Node' for the nested class, not
  248. `Node<T>' (which would create another type parameter `T'
  249. overriding `T' from the outer class).
  250. 2004-02-23 Martin Baulig <[email protected]>
  251. * Stack.cs, Queue.cs: New files. Hmm, looks like I forgot to add
  252. them to CVS; they're already on my hard disk since December or so.
  253. 2003-12-08 Martin Baulig <[email protected]>
  254. * *.cs: require GENERICS.
  255. 2003-11-08 Ben Maurer <[email protected]>
  256. * *.cs: require NET_2_0 and GENERICS
  257. 2003-11-07 Ben Maurer <[email protected]>
  258. * IComparable.cs, IComparer.cs, IDictionary.cs, IKeyComparer.cs, KeyValuePair.cs
  259. Added.
  260. 2003-11-06 Martin Baulig <[email protected]>
  261. * ICollection.cs, IList.cs, IEnumerator.cs, IEnumerable.cs:
  262. Started to implement the System.Collections.Generic classes.