GetCount() public method

public GetCount ( IEnumerable technologies ) : int>.Dictionary
technologies IEnumerable
return int>.Dictionary
Beispiel #1
0
        public static void Main()
        {
            Console.OutputEncoding = Encoding.UTF8;

            ITechnologiesProvider      technologiesProvider      = new CommonTechnologiesProvider();
            ITechnologiesCountProvider technologiesCountProvider = new JobsBgTechnologiesCountProvider();
            var technologiesList = technologiesCountProvider.GetCount(technologiesProvider.GetTechnologies());

            Console.WriteLine();
            Console.WriteLine("Technology,Count");
            foreach (var item in technologiesList.OrderByDescending(x => x.Value))
            {
                Console.WriteLine($"{item.Key},{item.Value}");
            }
        }
        public static void Main()
        {
            Console.OutputEncoding = Encoding.UTF8;

            ITechnologiesProvider technologiesProvider = new CommonTechnologiesProvider();
            ITechnologiesCountProvider technologiesCountProvider = new JobsBgTechnologiesCountProvider();
            var technologiesList = technologiesCountProvider.GetCount(technologiesProvider.GetTechnologies());

            Console.WriteLine();
            Console.WriteLine("Technology,Count");
            foreach (var item in technologiesList.OrderByDescending(x => x.Value))
            {
                Console.WriteLine($"{item.Key},{item.Value}");
            }
        }