Acceptance criteria
Flattenis anIEnumerable<string>extension method and the help command still displays its details correctly.
Flatten is an IEnumerable<string> extension method and the help command still displays its details correctly.Flatten method in the ListUtil class an extension method on objects of type IEnumerable<string> by adding the 'this' keyword before the type of the first parameter.Now instead of having to pass an IEnumerable of type string to this method we can call the Flatten method ON an IEnumerable of type string.
public static string Flatten(this IEnumerable<string> list, string separator)ConsoleUtil's WriteHelpDetail method, change how the Flatten method is called so that instead of passing in an IEnumerable<string>, the method is called on the IEnumerable<string>.Console.WriteLine($"Usage: {upperCommand} {arguments.Keys.Flatten(" ")}");The show command's details and parameters should appear and the help command should work as it did before.
ZooExtensions provides FindAnimal and FindGuest without changing their existing call format.ZooExtensions in the Zoos project.Zoo class to the ZooExtensions class.FindAnimalFindGuestZoo type named zoo to the beginning of the parameters and add the 'this' keyword in front of it.Add the ToList() extension method to the collections to make them lists.
Then show that animal. The show animal command, which uses the FindAnimal extension method, should work as before.
Then show that guest. The show guest command, which uses the FindGuest extension method, should work as before.
SortHelper, turn each of the four sort methods and the swap method into extension methods.Zoo and SortHelper classes (including in the QuickSort method), call each of the methods as extension methods instead methods on the static SortHelper class.ConsoleUtil's WriteHelpDetail methodZoo class' SortObjects method© 2026 Northcentral Technical College