private static void PrintStrategy_UseDelegate(IEnumerable <string> listNames)
        {
            Console.WriteLine(@"Use delegate.");

            var listEmployees = new List <Employee>();

            var i = 10;

            foreach (var name in listNames)
            {
                var employee = new Employee(i, name);
                Console.WriteLine(employee.ToString());
                listEmployees.Add(employee);
                i--;
            }

            Console.WriteLine(@"listEmployees.Sort((x, y) => x.Id.CompareTo(y.Id));");
            listEmployees.Sort((x, y) => x.Id.CompareTo(y.Id));

            foreach (var item in listEmployees)
            {
                Console.WriteLine(item.ToString());
            }
        }
        private static void PrintStrategy_UseFunctor(IEnumerable <string> listNames)
        {
            Console.WriteLine(@"Use functor.");

            var listEmployees = new List <Employee>();

            var i = 10;

            foreach (var name in listNames)
            {
                var employee = new Employee(i, name);
                Console.WriteLine(employee.ToString());
                listEmployees.Add(employee);
                i--;
            }

            Console.WriteLine($@"listEmployees.Sort(new {nameof(EmployeeByIdComparer)}());");
            listEmployees.Sort(new EmployeeByIdComparer());

            foreach (var item in listEmployees)
            {
                Console.WriteLine(item.ToString());
            }
        }