public void Fill2() { for (int i = 10; i <= 1000 * 1000; i++) { Cup cup = new Cup(i); CupList.Add(cup); } CupMax = CupList.Max(x => x.Number); }
public Data2(string inputData) { foreach (char c in inputData) { Cup cup = new Cup(c - '0'); CupList.Add(cup); } CupMax = CupList.Max(x => x.Number); }