예제 #1
0
        static void Main(string[] args)
        {
            HomeClass home  = new HomeClass();
            PrintHome print = i => Console.WriteLine(i.Name + " " + i.Address);

            print(home);
        }
        static void Main(string[] args)
        {
            Home home = new Home("Pirgos", "Saint Pirgos 2000");

            PrintHome print = MethodA;

            print(home);

            PrintHome del;

            del = (Home home2) => Console.WriteLine(home2.Address + "-" + home2.Name);

            del(home);
        }