Пример #1
0
        static void Main(string[] args)
        {
            #region Args
            foreach (string arg in args)
            {
                Console.WriteLine(arg);
            }
            //cd "Documents and Settings\alan\My Documents\Visual Studio 2010\Projects\Console_practice\Console_practice\bin\Debug"
            #endregion

            ReverseFormatter r = new ReverseFormatter();
            Book b = new Book(r);
            Paper p = new Paper(r);

            b.Title = "Alans Book";
            p.PaperName = "Alans Paper";

            List<ManuScript> MList = new List<ManuScript>();
            MList.Add(b);
            MList.Add(p);

            foreach (var item in MList)
            {
                item.Print();
            }
        }