예제 #1
0
    private static void WithDecoratorClass()
    {
        // Decorate the class
        var pp = new PrintablePerson(new Person());

        pp.FirstName = "John";
        pp.LastName  = "Public";

        pp.Print();
    }
예제 #2
0
    private static void WithDecoratorClass()
    {
        // Decorate the class
        var pp = new PrintablePerson(new Person());

        pp.FirstName = "John";
        pp.LastName = "Public";

        pp.Print();
    }