예제 #1
0
        static void MyLesson17Examples()
        {
            Lesson17 my17   = new Lesson17("Cowboy", 7);
            TryOn    theHat = my17.TryOnHat;

            theHat("I tried on a " + my17.HatType + "hat that was size" + my17.HatSize);

            Lesson17 myLesson17 = new Lesson17();
            Lesson17 myFav17    = new Lesson17("Trucker");

            Console.WriteLine(myFav17.MyResult);
            Console.WriteLine(myFav17.MyLambdaExample(6));
        }
예제 #2
0
        static void MyLesson17Examples()
        {
            Lesson17 my17   = new Lesson17("Fedora", 8);
            TryOn    theHat = my17.TryOnHat;

            theHat("I tried on a " + my17.HatType + " hat that was a size "
                   + my17.HatSize);

            Lesson17 MyLesson17 = new Lesson17();

            Lesson17 myFav17 = new Lesson17("Skullcap");

            Console.WriteLine(myFav17.MyResult);
            Console.WriteLine(myFav17.MyLambdaExample(9));
        } // end method my lesson 17