C++ C#

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

API Reference

Namespace: Semata.DataStore.Util

Class: IteratorHelpers

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

public static C AddTo<T, C>(this Iterator<T> iterator, C collection, Func<T, bool> predicate)

Parameters

Type Name Description
Iterator<T> iterator The iterator
C collection The collection
Func<T, bool> predicate The predicate delegate

Returns: C

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.