public void SomeMethod()
    {
        ActionClass1 class1 = new ActionClass1();

        class1.DisplayMessage = this.Print;
    }
예제 #2
0
    public void SomeMethod()
    {
        ActionClass1 class1 = new ActionClass1();

        class1.DisplayMessage = x => Console.WriteLine(x);
    }