Table of Contents

Class EnumerableUtils

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

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 source parameter to the destination by calling addToDest function. Item type is converted using convertItem function.

EqualsRange<T>(T, IEnumerable<T>)

Gets whether value equals any item in the items.

ForEach(IEnumerableTree, Action<object>)

Calls func action 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.

GetItems<T>(IEnumerableTree)

Enumerates root items of the IEnumerableTree.

InsertPrefix(IEnumerable<string>, string)

Inserts prefix in the beginning of the each string in items.