Project Description

A super set of the System.Collections.Generic.List<T> class, adding overloads for some methods and operator overloads into the mix.

Please if you've used this library and found it useful rate this project up!

Thanks for your support in doing so :)

Library Api

Method
Summary
Example
SuperList<T> operator +(SuperList<T> list1,SuperList<T> list2) Appends a second list to another var addedList = new SuperList<int>{1,2,3} + new SuperList<int>{4,5,6};
addedList
>>>(1,2,3,4,5,6)
SuperList<T> operator +(SuperList<T> list1,T item) Appends an item to the end of the list var addedList = new SuperList<int>{1,2,3}+4;
>>>(1,2,3,4)
SuperList<T> operator<<(SuperList<T> list,int times) Removes n items at the beginning of the list var list=new SuperList<int>{1,2,3,4,5,6}<<3;
>>>(4,5,6)
SuperList<T> operator>>(SuperList<T> list,int times) Removes n items at the end of the list var list=new SuperList<int>{1,2,3,4,5,6}>>3;
>>>(1,2,3)
SuperList<T> operator *(SuperList<T> list, int times) Duplicates the list n times and puts the duplicates in with the original values as one list
var result = new SuperList<int>{1,2,3}*2;
result
>>>(1,2,3,1,2,3)
 Insert(int index, SuperList<T> items) Inserts a collection of elements into the list at the specified index. new SuperList<int>{1,2,3}.Insert(2,new SuperList<int>{8,9})
>>>(1,2,8,9,3)
 RemoveAt(int index, int amount) Removes several elements specified by an amount at a given index. new SuperList<int>{1,2,3,4,5,6,7}.RemoveAt(2,3)
>>>(1,2,6,7)
IEnumerable<SuperList<T>> operator /(SuperList<T> listToSplice, int n) Splices a list into n equal parts new SuperList<int>{1,2,3,4,5,6}/3
>>>(1,2),(3,4),(5,6)
bool Contains(SuperList<T> items, bool inSequence) Checks to see whether a collection of items is contained in the list. inSequence checks if the list contains the elements found in the exact same order new SuperList<int>{1,2,3,4,5,6,7}.Contains(new SuperList<int>{3,4,5},true)
>>>true

Last edited Feb 25, 2013 at 9:58 AM by xwestidan, version 14