C++ C#

IteratorHelpers Class

API Reference

Namespace: Semata.DataStore.Util

Iterators do not implement the necessary interfaces to be used in "for each" statements, as their behaviour is different. However the extension methods in this class provide very similar functionality.

public ref class IteratorHelpers static

Methods

Name Description
AddTo<T, C, V>(Iterator<T>^, C^, Func<T, V>^)

Calls convert on each object of type T returned by the iterator and then adds the returned object of type V to a collection of type V objects

AddTo<T, C, V>(Iterator<T>^, C^, Func<T, bool>, Func<T, V>^)

Calls predicate on each object of type T returned by the iterator. If it returns true calls convert on the object and adds the returned object of type V to a collection of type V objects

AddTo<T, C>(Iterator<T>^, C^)

Adds the objects of type T returned by the iterator to a collection of type T objects

AddTo<T, C>(Iterator<T>^, C^, Func<T, bool>)

Calls predicate on each object of type T returned by the iterator and if it returns true adds the object of type V to a collection of type V objects

ForEach<T>(Iterator<T>^, Action<T>^)

Performs the specified action on each object of type T returned by the iterator

This website stores cookies on your computer that are used to manage the order in which you see the pages. To find out more about the cookies we use, see our Privacy Policy.