Пример #1
0
    public static void test()
    {
        var c = new ClassImplementingIF1IF2();

        doIt(c);
        var c_holder = Holder <IF1, IF2> .CreateFrom(c);

        doIt(c_holder);
        var another_c_holder = Holder <IF1_extension, IF2> .CreateFrom(c);

        doIt_extended(another_c_holder);
        object diguised_c         = c;
        var    disguised_c_holder = Holder <IF1, IF2> .CreateDynamicallyFrom(diguised_c);

        doIt(disguised_c_holder);
    }
    public static void test()
    {
        var c = new ClassImplementingIF1IF2();

        doIT(c);
    }