Utils_Linq Methods |
The Utils_Linq type exposes the following members.
Name | Description | |
---|---|---|
AddK, V(ListKeyValuePairK, V, K, V) |
Adds a new instance of KeyValuePair in a list of KeyValuePair or same type.
| |
AddV1, V2(ListTupleV1, V2, V1, V2) |
Adds a new instance of Tuple in a list of Tuple or same type.
| |
AddK, V(ListSerializableKeyValuePairK, V, K, V) |
Adds a new instance of KeyValuePair in a list of KeyValuePair or same type.
| |
AddV1, V2, V3(ListTupleV1, V2, V3, V1, V2, V3) |
Adds a new instance of Tuple in a list of Tuple or same type.
| |
AddConcat |
Adds a single string to a string List from an array of strings to concatanate.
| |
AddFormat |
Adds a formatted string to the List.
| |
AddIfNotNullT |
Adds an object to the list if it is not null.
| |
AddRange(ListString, String) |
Adds the elements of the specified collection to the end of the List.
| |
AddRangeT(ListT, T) |
Adds the elements of the specified collection to the end of the System.Collections.Generic.List.
| |
CastToListT(IEnumerable) |
Casts an enumerable to a strongly typed List.
| |
CastToListT(IEnumerable, FuncObject, T) |
Casts an enumerable to a strongly typed List.
| |
CompareT |
Compares two lists.
Returns True if the two lists are both null, or both empty,
or both have the same elements.
| |
Concat(IEnumerableString, String) |
Joins all strings of the list using a separator.
| |
Concat(ListGuid, String) |
Concatanates all guids inside a single string using a separator.
| |
Concat(ListInt64, String) |
Concatanates all numbers inside a single string using a separator.
| |
Contains(ListString, String, Boolean) |
Checks if one of the list values matches a specific text.
| |
Contains(ListString, String, StringComparison) |
Checks if one of the list values contains a text.
| |
ContainsK, V(IEnumerableKeyValuePairK, V, K, V) |
Determines whether an element is in the list.
| |
ContainsK, V(IEnumerableSerializableKeyValuePairK, V, K, V) |
Determines whether an element is in the list.
| |
Convert |
Converts a NameValueCollection to an List of KeyValuePair.
| |
CreateListT |
Creates a new list of type T with the specified items as default values.
| |
CreateReadOnlyCollectionT |
Creates a new instance of an empty read-only list/collection.
| |
DistinctByT, TIdentity |
Returns distinct elements from a sequence by using a specified predicate to compare values.
| |
ForEachT |
Performs the specified action on each element of the System.Collections.Generic.IEnumerable/T/.
| |
GetRandomItemT |
Gets a random item from a list of items.
| |
GetRangeT |
Gets a range of values.
| |
GetString(IEnumerableString, String) |
Joins all strings of the list using a separator.
| |
GetStringT(IEnumerableT, String) |
Creates a string with all values in the List, separated by a string.
Uses ToString to convert objects. | |
GetStringT(IEnumerableT, String, FuncT, String) |
Creates a string with all values (converted using a function) in the List, separated by a string.
| |
IContains(IEnumerableString, String) |
Checks if one of the list values matches a specific text, ignoring case.
| |
IContains(StringCollection, String) |
Checks if a string collection contains a specific text.
The comparison is not case sensitive.
| |
IsEmptyT |
Checks if a list is empty.
| |
IsGenericList(Object) |
Checks if this object is a System.Collections.Generic.List.
| |
IsGenericList(Object, Type) |
Checks if this object is a System.Collections.Generic.List using type as T.
| |
IsNotEmptyT |
Checks if a list is not empty.
| |
IsNullOrEmptyT |
Checks if a list is null or empty.
| |
ListToDataTableT |
Converts a list of objects to a DataTable using T properties as columns.
| |
MaxOrZeroT(ListT, FuncT, Int32) |
Gets the maximum number of a list, where all elements are transformed using a function.
| |
MaxOrZeroT(ListT, FuncT, Single) |
Gets the maximum number of a list, where all elements are transformed using a function.
| |
MoveT(IListT, Int32, Int32) |
Moves an object of a list to a new index.
| |
MoveT(IListT, T, Utils_LinqMoveDirection) |
Moves an object of a list up or down if possible.
| |
MoveT(IListT, T, Int32) |
Moves an object of a list to a new index.
| |
NotNullT |
Filters a collection of values, excluding null values.
| |
PopT |
Filters, removes and returns a sequence of values based on a predicate.
| |
PopFirstT |
Finds, removes and returns the first found occurrence
of an element (based on a predicate).
| |
RemoveK, V(ListKeyValuePairK, V, K, V) |
Removes the first occurrence of a specific object from the list.
| |
RemoveK, V(ListSerializableKeyValuePairK, V, K, V) |
Removes the first occurrence of a specific object from the list.
| |
RemoveRange(ListString, ListString) |
Removes all occurences of multiple strings from the List.
| |
RemoveRange(ListString, ListString, Boolean) |
Removes all occurences of multiple strings from the List.
| |
RemoveRangeT(ListT, ListT) |
Removes all occurences of multiple objects from the List.
| |
RemoveRangeT(ListT, FuncT, Boolean) |
Removes all matching objects from the List.
| |
RemoveRangeT(ListT, T) |
Removes all occurences of multiple objects from the List.
| |
ToDictionaryK, V |
Converts a list of KeyValuePair to a dictionary using the same types.
| |
UpdateListFromListT1, T2 |
This function will update a target list using a source list.
Using a comparison function, it will find missing and obsolete objects. All corresponding object in toList will be updated using the object in fromList. | |
WhereK, V |
Filters a dictionary using a predicate.
|