CollectionUtilities Methods

The CollectionUtilities type exposes the following members.

Methods


  Name Description
Public method Static member AddRange<(Of <<'(T>)>>)(ICollection<(Of <<'(T>)>>), List<(Of <<'(T>)>>))
Adds a list of values into the target collection.
Public method Static member AddRange<(Of <<'(T>)>>)(ICollection<(Of <<'(T>)>>), IEnumerable<(Of <<'(T>)>>))
Adds a list of values into the target collection.
Public method Static member AddRange<(Of <<'(T>)>>)(ICollection<(Of <<'(T>)>>), array<T>[]()[][])
Adds a list of values into the target collection.
Public method Static member AddRange<(Of <<'(T>)>>)(ICollection<(Of <<'(T>)>>), IEnumerable<(Of <<'(Task<(Of <<'(T>)>>)>)>>))
Unwraps a list of Tasks and adds their results to the target collection.
Public method Static member AsList<(Of <<'(T>)>>)
Returns the enumeration as an IList. If it isn't already an IList, it makes it into one so that you can safely enumeration the list multiple times.
Public method Static member AsReadOnlyCollection<(Of <<'(T>)>>)
Casts an IList<T> into a AsReadOnlyCollection<T>. If the cast fails, the list is wrapped in an adapter.
Public method Static member AsReadOnlyList<(Of <<'(T>)>>)
Casts an IList<T> into a IReadOnlyList<T>. If the cast fails, the list is wrapped in a ReadOnlyCollection<T>.
Public method Static member BatchAsLists<(Of <<'(T>)>>)
Batches the specified enumeration into lists according to the indicated batch size.
Public method Static member BatchAsSegments<(Of <<'(T>)>>)
Batches the specified enumeration into lightweight segments according to the indicated batch size.
Public method Static member Concat<(Of <<'(TSource>)>>)
Concatenates an item onto the emd of an enumeration.
Public method Static member ContainsAllOf<(Of <<'(T>)>>)
Determines whether the source contains all of the specified values.
Public method Static member ContainsOnly<(Of <<'(T>)>>)
Determines whether the source contains all of the specified values and nothing else.
Public method Static member GetKeys<(Of <<'(TKey, TValue>)>>)
Gets the keys as a readonly collection.
Public method Static member GetValues<(Of <<'(TKey, TValue>)>>)
Gets the values as a readonly collection.
Public method Static member IndexOf<(Of <<'(T>)>>)
Locates the index of the indicated item.
Public method Static member InsertRange<(Of <<'(T>)>>)
Inserts a list of values into the target collection.
Public method Static member RemoveRange<(Of <<'(T>)>>)
Removes count items from the collection
Public method Static member Sort<(Of <<'(T>)>>)(IList<(Of <<'(T>)>>))
Performs an in-place sort of the specified list using it's IComparable<T> interface.
Public method Static member Sort<(Of <<'(T>)>>)(IList<(Of <<'(T>)>>), IComparer<(Of <<'(T>)>>))
Performs an in-place sort of the specified list.
Public method Static member Sort<(Of <<'(T>)>>)(IList<(Of <<'(T>)>>), Int32, Int32, IComparer<(Of <<'(T>)>>))
Performs an in-place sort of the specified list.
Public method Static member Sort<(Of <<'(T>)>>)(IList<(Of <<'(T>)>>), Comparison<(Of <<'(T>)>>))
Performs an in-place sort of the specified list.