Class EnumerableUtils
Contains static methods related to IEnumerable.
public static class EnumerableUtils
- Inheritance
-
EnumerableUtils
Methods
- ConvertItems<TSource, TDest>(Func<TSource, TDest?>, Func<IEnumerable<TDest>, bool>, IEnumerable<TSource>, int)
Converts items from the IEnumerable<T> specified in the
sourceparameter to the destination by callingaddToDestfunction. Item type is converted usingconvertItemfunction.
- EqualsRange<T>(T, IEnumerable<T>)
Gets whether
valueequals any item in theitems.
- ForEach(IEnumerableTree, Action<object>)
Calls
funcaction for the each item of the IEnumerableTree.
- ForEach<T>(IEnumerable<T>, Action<T>)
Calls specified action for the each item of the IEnumerable<T>.
- GetChildren<T>(IEnumerableTree, object)
Enumerates children items of the specified item.
- GetCount(IEnumerable)
Gets the count of elements in an IEnumerable. Uses ICollection for efficiency when available.
- GetItems<T>(IEnumerableTree)
Enumerates root items of the IEnumerableTree.
- InsertPrefix(IEnumerable<string>, string)
Inserts
prefixin the beginning of the each string initems.