Esempio n. 1
0
        static void Main(string[] args)
        {
            Mydictionary <string> sehirler = new Mydictionary <string>();

            sehirler.Add("İzmir");
            sehirler.Add("İzmir");
            sehirler.Add("İzmir");
            Console.WriteLine(sehirler.Count);

            foreach (var sehir in sehirler.Items)
            {
                Console.WriteLine(sehir);
            }
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            Dictionary <string, string> countries = new Dictionary <string, string>();

            countries.Add("TR", "Turkey");
            countries.Add("TS", "Turkey");
            countries.Add("TK", "Turkey");
            countries.Add("TA", "Turkey");
            Console.WriteLine(countries.Count);
            Mydictionary <string, string> countries2 = new Mydictionary <string, string>();

            countries2.Add("TR", "Türkiye");
            countries2.Add("Ta", "Türkiye");
            countries2.Add("Td", "Türkiye");
            countries2.Add("Ts", "Türkiye");
            countries2.Add("Tk", "Türkiye");
            Console.WriteLine(countries2.Count);
        }