Attached are 'substantial' changes in the List implementation,
including a 9-fold increase in tests (written while verifying behavior
in the 2005 beta 2 implementation of List<T>)

2005-06-20  David Waite  <[EMAIL PROTECTED]>

    * List.cs : substantial changes and optimizations
    (AddCollection, AddEnumerable): new internal specializations of AddRange
    (AsReadOnly): returns specific IList<T> to match ms.net 2.0b2 api.
    (Clear): reset size to zero on clear
    (ConvertAll): catch null converter, use Add to prevent OutOfBounds
    exception
    (FindAll, FindIndex, FindLast, FindLastIndex, RemoveAll, TrueForAll):
    check for null match
    (FindLastIndex): correct index parameters based on ms.net 2005b2 behavior
    (ForEach): catch null action
    (CheckIndex): new internal function similar to CheckRange for functions
    which only provide a starting index
    (InsertCollection, InsertEnumerable): new internal specializations of
    InsertRange
    (ReadOnlyList): removed, ReadOnlyCollection in
    System.Collections.ObjectModel is used instead now
    * ListTest.cs: Substantial new tests

-David Waite

Attachment: scg.list-improvements.diff
Description: Binary data

_______________________________________________
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list

Reply via email to