static void Main(string[] args)
        {
            AgentAbstract fan = new AgentPerson();

            fan.Speculation("偶尔出来现现身,为炒作造势");
            Console.WriteLine();
            fan.Speculation("这段时间不火了,开始离婚炒作");
            Console.Read();
        }
Exemple #2
0
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");
            Console.WriteLine("--------------------ProxyPattern--------------------");
            Console.WriteLine();
            AgentAbstract agent = new AgentPerson();

            agent.Speculation("搞点事情玩玩!");
            agent.Speculation("再搞点事情!");
            Console.ReadKey();
        }