示例#1
0
    static void Main(string[] args)
    {
        MyClass cls = new MyClass();

        cls.Act();
        IAction1 a = cls;

        a.Act();
        IAction2 b = cls;

        b.Act();
        Console.ReadKey();
    }