コード例 #1
0
        static void Main(string[] args)
        {
            //AbstructMethod();

            //Interface tesing
            //I3rdLevelInterface iImp = new Program();
            //iImp.execute3rdMethod();
            //iImp.execute2ndMethod();
            //iImp.execute1stMethod();

            //printer cousoleout = new printer(consolewrite);
            //cousoleout("printer ");


            //ParticeDelegateThreeTypes.PrintStuff("Three types delegate");

            //DateTime testDemo = ParticeDelegateThreeTypes.TryConverter(22.2);
            //Console.WriteLine(testDemo);

            My_book book = new My_book();

            book.IntFirst  = 1;
            book.IntSecond = 2;
            book.IntThird  = 3;
            Calculator cal     = new Calculator();
            var        result  = cal.Accumulate(book);
            Calculator cal2    = new Calculator();
            var        result2 = cal2.Accumulate(book);

            Console.WriteLine(result2.Max);

            Console.ReadLine();
        }