All C# extension methods for type ilist-t
-
IList<T> to Excel file
An extension method that produce a excel file of List<T>. This would be useful if you want to automatically generate a Excel out of any other primative data type collection I provided 1 overloads of this method, that accepts a Path as string to save excel file to location on disk.
-
IsNullOrEmpty
Determines whether a collection is null or has no elements without having to enumerate the entire collection to get a count.
-
Replace
This extension method replaces an item in a collection that implements the ilist<t> interface
-
Clone
Allows you to clone an etire generic list of cloneable items.
-
With and Without
Fake immutability in an existing list class by adding a "With" and "Without" method
-
First(), Last(), Any()
Helper methods to simplify development. Prevent common LINQ performance mistakes.
-
RemoveAtFast
Fast version of the RemoveAt function. Overwrites the element at the specified index with the last element in the list, then removes the last element, thus lowering the inherent O(n) cost to O(1). IMPORTANT: Intended to be used on *unordered* lists only.
-
GetRandomItem
Return's a random item from a IList<T>
-
Randomize
Randomize the Items in the list
-
InsertSorted
Insert an item to a sorted List
-
Chainable List.Add / typesafe
Allows you to chain .Add method
-
Replace
Use this extention method with a lambda expression to replace the first item that satisfies the condition
-
DistinctCsv
Returns a distinctive comma-separated list.