Iterate

Applies the given function to each element of the collection.

WARNING

This function causes IEnumerable<T> evaluation.

Usage

Writing elements in console

//IEnumerable<string> source = { "Hello", " ", "Tango" }

source.Iterate( value => Console.Write(value) );

//"Hello Tango"

Last updated