using System; using System.Collections.Generic; public class Test { public void doAList(List<(int tof, int pw)> pig, int n) { for (int j = 0; j < n; j++) pig.Add((tof: j * 2 + 1, pw: j * 3 + 2)); } public static void Main() { Test t = new Test(); List<(int tof, int pw)> p = new List<(int tof, int pw)>(); t.doAList(p, 3); for (int j = 0; j < p.Count; j++) Console.WriteLine($"{j} : {p[j].tof}, {p[j].pw}"); } }