Example #1
0
        static void Main(string[] args)
        {
            Girl  girl  = new Girl("蓉儿");
            Proxy proxy = new Proxy(girl);

            proxy.GiveDolls();
            proxy.GiveFlowers();
            proxy.GiveChocolate();

            Console.ReadKey();
        }
Example #2
0
        static void Main(string[] args)
        {
            Girl sGirl = new Girl("sx");

            Proxy mm = new Proxy(sGirl);

            mm.GiveChocolate();
            mm.GiveDolls();
            mm.GiveFlowers();

            RealProxy _realProxy = new RealProxy();

            _realProxy.Request();
        }
Example #3
0
 /// <inheritdoc />
 public Proxy(Girl girl)
 {
     boy = new Pursuit(girl);
 }
Example #4
0
 /// <inheritdoc />
 public Pursuit(Girl girl)
 {
     _girl = girl;
 }
Example #5
0
 public Proxy(Girl mm)
 {
     gg = new Pursuit(mm);
 }