static void Main(string[] args) { NumbersAndStrings numbersAndStrings = new NumbersAndStrings(); var numbersandstrings = numbersAndStrings.GetNumbersAndStrings(); for (int i = 0; i < numbersandstrings.Count; i++) { Console.WriteLine(numbersandstrings[i].ToString()); } Console.ReadLine(); }
static void Main(string[] args) { NumbersAndStrings numbersAndStrings = new NumbersAndStrings(); var numbersandstrings = numbersAndStrings.GetNumbersAndStrings(); for(int i=0; i<numbersandstrings.Count;i++) { Console.WriteLine(numbersandstrings[i].ToString()); } Console.ReadLine(); }