AbstractDataStructures.PhonebookAppEntryPoint.PrintResult(System.Collections.Generic.ICollection, string, string)

Here are the examples of the csharp api class AbstractDataStructures.PhonebookAppEntryPoint.PrintResult(System.Collections.Generic.ICollection, string, string) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Example 7

1. Example

View license
private static void ExecuteCommands(Phonebook phonebook, string text)
        {
            var commands = ExtractCommands(text);

            foreach (var command in commands)
            {
                if (command[0] == "find")
                {
                    if (command.Count == 2)
                    {
                        PrintResult(phonebook.Find(command[1]), command[1]);
                    }
                    else if (command.Count == 3)
                    {
                        PrintResult(phonebook.Find(command[1], command[2]), command[1], command[2]);
                    }
                }
            }
        }