using System.Collections.Generic;
using People = System.Collections.Generic.List<(string Name, int Age)>;
public static void Main()
People people = new People();
people.AddRange(GetPersons());
foreach(var person in people)
private static IEnumerable<(string Name, int Age)> GetPersons()
yield return ("Bobby", 14);
yield return ("Jane", 15);
private static void PrintPerson((string Name, int Age) person)
Console.WriteLine(person.Name + " -> " + person.Age);