Concat
Returns a new collection that contains the elements of each the collection in order.
Parameters
Returns
IEnumerable<IEnumerable<T>> sources
IEnumerable<T>
params IEnumerable<T>[ ] sources
IEnumerable<T>
Usage
There's two different overloads of this function, but they works in a very similar way.
The first one requires that the parameter is an IEnumerable
of IEnumerables
and the second one uses the params
keyword to provides a way to inform multiples standalone IEnumerables
.
Concatenating an IEnumerable of IEnumerabls
Concatenating three different collections
Last updated
Was this helpful?