Пример #1
0
        static void Main(string[] args)
        {
            Account account = new Account();

            account.AddOrder(new Order());
            account.AddOrder(new Order());
            account.AddOrder(new Order());

            PrintAttributes(account);
            Console.WriteLine(new String('-', 64));
            foreach (var order in account.GetOrders())
            {
                PrintAttributes(order);
                Console.WriteLine(new String('-', 64));
            }

            Console.ReadLine();
        }