Check out example codes for "C# loop through array of objet". It will help you in understanding the concepts better.

Code Example 1

List<string> names = new List<string>() { "Suresh Dasari", "Rohini Alavala", "Trishika Dasari" };

            foreach (string name in names)

            {

                Console.WriteLine(name);

            }

Learn ReactJs, React Native from akashmittal.com