Namespace: Semata.DataStore.Util
Class: IteratorHelpers
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
public static C AddTo<T, C, V>(this Iterator<T> iterator, C collection, Func<T, bool> predicate, Func<T, V> convert)
Parameters
Type | Name | Description |
Iterator<T> | iterator | The iterator |
C | collection | The collection |
Func<T, bool> | predicate | The predicate delegate |
Func<T, V> | convert | The convert delegate |
Returns: C