IEnumerableExtensions Class

Contains custom extension methods to use with an IEnumerableT.

Definition

Namespace: DevCase.Extensions.IEnumerableExtensions
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[HideModuleNameAttribute]
public sealed class IEnumerableExtensions
Inheritance
Object    IEnumerableExtensions

Methods

AppendT Appends an element to the end of the source collection.
AsReadOnlyT Returns a read-only ReadOnlyCollectionT wrapper for the specified collection.
ConcatMultipleT Concatenates multiple IEnumerableT at once into a single IEnumerableT.
CountEmptyItemsT Counts the empty items of the source IEnumerableT.
CountNonEmptyItemsT Counts the non-empty items of the source IEnumerableT.
DistinctByTSource, TKey(IEnumerableTSource, FuncTSource, TKey) Returns distinct elements from a sequence by using a specified key selector and the default equality comparer to compare values.
DistinctByTSource, TKey(IEnumerableTSource, FuncTSource, TKey, IEqualityComparerTKey) Returns distinct elements from a sequence by using a specified key selector and equality comparer to compare values.
DuplicatesT Gets all the duplicated values of the source IEnumerableT.
Equals Determines whether the specified object is equal to the current object.
(Inherited from Object)
ForEachT Performs the specified action on each element of the IEnumerableT.
GetHashCode Serves as the default hash function.
(Inherited from Object)
GetRandomItemT Gets a random element from the source IEnumerableT.
GetType Gets the Type of the current instance.
(Inherited from Object)
GroupByIntoFirstElementT, TKey Groups the elements of a sequence according to a specified key selector function and discards all the elements in each group except the first element.
GroupByIntoItemCountT, TKey Groups the elements of a sequence according to a specified key selector function and returns a DictionaryTKey, TValue dictionary on which {.key = element} and {.value = element count}.
GroupByIntoMaxNumberOfElementsT, TKey Groups the elements of a sequence according to a specified key selector function and takes the specified amount of elements of each group.
IndexOfT(IEnumerableT, T) Searches for the specified object and returns the zero-based index of the first occurrence within the entire IEnumerableT.
IndexOfT(IEnumerableT, IEnumerableT) Searches for the specified object pattern and returns the zero-based index of the first occurrence within the entire IEnumerableT.
IndexOfT(IEnumerableT, T, Int32) Searches for the specified object and returns the zero-based index of the first occurrence within the entire IEnumerableT.
IndexOfT(IEnumerableT, IEnumerableT, Int32) Searches for the specified object pattern and returns the zero-based index of the first occurrence within the entire IEnumerableT.
IndexOfT(IEnumerableT, T, Int32, Int32) Searches for the specified object and returns the zero-based index of the first occurrence within the entire IEnumerableT.
IndexOfT(IEnumerableT, IEnumerableT, Int32, Int32) Searches for the specified object pattern and returns the zero-based index of the first occurrence within the entire IEnumerableT.
IndexOfAllT(IEnumerableT, T) Searches for the specified object and returns the zero-based indices of all the occurrence within the entire IEnumerableT.
IndexOfAllT(IEnumerableT, IEnumerableT) Searches for the specified object pattern and returns the zero-based indices of all the occurrence within the entire IEnumerableT.
IndexOfAllT(IEnumerableT, T, Int32) Searches for the specified object and returns the zero-based indices of all the occurrence within the entire IEnumerableT.
IndexOfAllT(IEnumerableT, IEnumerableT, Int32) Searches for the specified object pattern and returns the zero-based indices of all the occurrence within the entire IEnumerableT.
IndexOfAllT(IEnumerableT, T, Int32, Int32) Searches for the specified object and returns the zero-based indices of all the occurrence within the entire IEnumerableT.
IndexOfAllT(IEnumerableT, IEnumerableT, Int32, Int32) Searches for the specified object pattern and returns the zero-based indices of all the occurrence within the entire IEnumerableT.
PrependT Prepends an element to the start of the source collection.
RandomizeT Randomizes the elements of the source IEnumerableT.
RemoveDuplicatesT(IEnumerableT) Removes duplicated values in the source IEnumerableT.
RemoveDuplicatesT(IEnumerableT, IEqualityComparerT) Removes duplicated values in the source IEnumerableT.
RemoveSequenceT(IEnumerableT, IEnumerableT) Searches for the specified pattern of elements in the source IEnumerableT and removes any occurrences.
RemoveSequenceT(IEnumerableT, IEnumerableT, Int32) Searches for the specified pattern of elements in the source IEnumerableT and removes any occurrences.
RemoveSequenceT(IEnumerableT, IEnumerableT, Int32, Int32) Searches for the specified pattern of elements in the source IEnumerableT and removes any occurrences.
ReplaceSequenceT(IEnumerableT, IEnumerableT, IEnumerableT) Searches for the specified pattern of elements in the source IEnumerableT and replace any occurrences with the specified replacement.
ReplaceSequenceT(IEnumerableT, IEnumerableT, IEnumerableT, Int32) Searches for the specified pattern of elements in the source IEnumerableT and replace any occurrences with the specified replacement.
ReplaceSequenceT(IEnumerableT, IEnumerableT, IEnumerableT, Int32, Int32) Searches for the specified pattern of elements in the source IEnumerableT and replace any occurrences with the specified replacement.
SplitIntoNumberOfElementsT(IEnumerableT, Int32) Splits the source IEnumerableT into secuences with the specified amount of elements.
SplitIntoNumberOfElementsT(IEnumerableT, Int32, Boolean, T) Splits the source IEnumerableT into secuences with the specified amount of elements.
SplitIntoPartsT Splits the source IEnumerableT into the specified amount of secuences.
StringJoinT Joins multiple IEnumerableT at once into a single string.
TakeUntilT Returns elements from a sequence until a specified condition is true.
ToArrayT Creates an array from an IEnumerableT using the specified transform function.
ToHtmlTableT Generic approach to convert a IEnumerableT to an HTML table string representation.
ToListT Creates a ListT from an IEnumerableT using the specified transform function.
ToObservableCollectionT(IEnumerableT) Creates a ObservableCollectionT from an IEnumerableT.
ToObservableCollectionT(IEnumerableT, FuncT, Boolean) Creates a ObservableCollectionT from an IEnumerableT using the specified transform function.
ToSortableObservableCollectionT(IEnumerableT) Creates a SortableObservableCollectionT from an IEnumerableT.
ToSortableObservableCollectionT(IEnumerableT, FuncT, Boolean) Creates a SortableObservableCollectionT from an IEnumerableT using the specified transform function.
ToString Returns a string that represents the current object.
(Inherited from Object)
ToTreeStringT Transforms an array of string into a string with tree formatting.
UniqueDuplicatesT Gets the unique duplicated values of the source IEnumerableT.
UniquesT Gets the unique values of the source IEnumerableT.

Extension Methods

CanConvertTo Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
CanConvertToT Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
ConvertToT Converts an object to the specified target type.

If the conversion fails, an exception is thrown.
(Defined by ObjectExtensions)

ConvertToT Converts an object to the specified target type.

If the conversion fails, returns the specified default value.
(Defined by ObjectExtensions)

IsDisposable Determines whether the specified object is a disposable type (i.e., it implements IDisposable interface).
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
ThrowIfNullTException Throws the specified exception if the source object is null.
(Defined by ObjectExtensions)

See Also