static void Main() { do { Console.Clear(); StringArray strArr = new StringArray(new string[] { "abc", "dbc", "cbc", "zbc" }); foreach (var arr in strArr) { foreach (var i in arr) { Console.WriteLine(i); } } Console.WriteLine("Press Esc to exit. Press any other key to continue."); } while (Console.ReadKey(true).Key != ConsoleKey.Escape); }
static void Main(string[] args) { do { Console.Clear(); var a = new StringArray(); foreach (var item in a) { foreach (var elem in item) { Console.Write(elem + " "); } Console.WriteLine(); } Console.WriteLine("Enter Esc to exit..."); } while (Console.ReadKey().Key != ConsoleKey.Escape); }