private void SearchTask() { string userSearch; List <Task> allTasks = new List <Task>(); System.Console.WriteLine("Type in what task you are searching for"); userSearch = Console.ReadLine(); allTasks = todoHandler.SearchTasks(userSearch); Console.Clear(); foreach (Task task in allTasks) { System.Console.WriteLine(task.ToString() + "\n\n"); } }