CollectionUtilities Methods
The CollectionUtilities type exposes the following members.
Methods
Name | Description | |
---|---|---|
![]() ![]() |
AddRange<(Of <<'(T>)>>)(ICollection<(Of <<'(T>)>>), List<(Of <<'(T>)>>)) |
Adds a list of values into the target collection.
|
![]() ![]() |
AddRange<(Of <<'(T>)>>)(ICollection<(Of <<'(T>)>>), IEnumerable<(Of <<'(T>)>>)) |
Adds a list of values into the target collection.
|
![]() ![]() |
AddRange<(Of <<'(T>)>>)(ICollection<(Of <<'(T>)>>), array<T>[]()[][]) |
Adds a list of values into the target collection.
|
![]() ![]() |
AddRange<(Of <<'(T>)>>)(ICollection<(Of <<'(T>)>>), IEnumerable<(Of <<'(Task<(Of <<'(T>)>>)>)>>)) |
Unwraps a list of Tasks and adds their results to the target collection.
|
![]() ![]() |
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.
|
![]() ![]() |
AsReadOnlyCollection<(Of <<'(T>)>>) |
Casts an IList<T> into a AsReadOnlyCollection<T>. If the cast fails, the list is
wrapped in an adapter.
|
![]() ![]() |
AsReadOnlyList<(Of <<'(T>)>>) |
Casts an IList<T> into a IReadOnlyList<T>. If the cast fails, the list is
wrapped in a ReadOnlyCollection<T>.
|
![]() ![]() |
BatchAsLists<(Of <<'(T>)>>) |
Batches the specified enumeration into lists according to the indicated batch size.
|
![]() ![]() |
BatchAsSegments<(Of <<'(T>)>>) |
Batches the specified enumeration into lightweight segments according to the indicated batch size.
|
![]() ![]() |
Concat<(Of <<'(TSource>)>>) |
Concatenates an item onto the emd of an enumeration.
|
![]() ![]() |
ContainsAllOf<(Of <<'(T>)>>) |
Determines whether the source contains all of the specified values.
|
![]() ![]() |
ContainsOnly<(Of <<'(T>)>>) |
Determines whether the source contains all of the specified values and nothing else.
|
![]() ![]() |
GetKeys<(Of <<'(TKey, TValue>)>>) |
Gets the keys as a readonly collection.
|
![]() ![]() |
GetValues<(Of <<'(TKey, TValue>)>>) |
Gets the values as a readonly collection.
|
![]() ![]() |
IndexOf<(Of <<'(T>)>>) |
Locates the index of the indicated item.
|
![]() ![]() |
InsertRange<(Of <<'(T>)>>) |
Inserts a list of values into the target collection.
|
![]() ![]() |
RemoveRange<(Of <<'(T>)>>) |
Removes count items from the collection
|
![]() ![]() |
Sort<(Of <<'(T>)>>)(IList<(Of <<'(T>)>>)) |
Performs an in-place sort of the specified list using it's IComparable<T> interface.
|
![]() ![]() |
Sort<(Of <<'(T>)>>)(IList<(Of <<'(T>)>>), IComparer<(Of <<'(T>)>>)) |
Performs an in-place sort of the specified list.
|
![]() ![]() |
Sort<(Of <<'(T>)>>)(IList<(Of <<'(T>)>>), Int32, Int32, IComparer<(Of <<'(T>)>>)) |
Performs an in-place sort of the specified list.
|
![]() ![]() |
Sort<(Of <<'(T>)>>)(IList<(Of <<'(T>)>>), Comparison<(Of <<'(T>)>>)) |
Performs an in-place sort of the specified list.
|