Beispiel #1
0
        static void Main(string[] args)
        {
            Hats qwe = new Hats();
            Dictionary <int, Hats> zxc = new Dictionary <int, Hats>();

            foreach (KeyValuePair <int, Hats> item in zxc)
            {
                Console.WriteLine(item.Value);
            }
        }
Beispiel #2
0
        public void CallHats()
        {
            //need to be filled
            Hats name1 = new Hats();

            name1.ID    = 1;
            name1.Name  = "Baseball cap";
            name1.Price = 39.99;

            Hats name2 = new Hats();

            name2.ID    = 2;
            name2.Name  = "name2";
            name2.Price = 19.99;
        }