Check out example codes for "c# ienumerable wrap to know when its compltee". It will help you in understanding the concepts better.

Code Example 1

IEnumerable<string> names = GetNames();
foreach (var name in names)
    Console.WriteLine("Found " + name);
var allNames = new StringBuilder();
foreach (var name in names)
    allNames.Append(name + " ");

Learn ReactJs, React Native from akashmittal.com