예제 #1
0
        static void Main(string[] args)
        {
            Dictonary <string, int> dictonary = new Dictonary <string, int>();

            dictonary.Add("Ecem", 200);
            dictonary.Add("Mete", 300);
            dictonary.Add("Buse", 400);
            Console.WriteLine(dictonary.Count);
        }
예제 #2
0
        static void Main(string[] args)
        {
            Dictonary <string> dictonaries = new Dictonary <string>();

            dictonaries.Add("Adidas");
            Console.WriteLine(dictonaries.Length);
            dictonaries.Add("Nike");
            Console.WriteLine(dictonaries.Length);

            foreach (var dictonary in dictonaries.GetJ)
            {
                Console.WriteLine(dictonary);
            }
        }