Exemple #1
0
        static void Main(string[] args)
        {
            XiaoDong boy = new XiaoDong()
            {
                Name = "小东"
            };
            Girl girl = new Girl()
            {
                Name = "娇娇"
            };
            Proxy proxy = new Proxy(boy);

            proxy.GiveFlows(girl);
            Console.Read();
        }
Exemple #2
0
 public void GiveFlows(Girl girl)
 {
     //Girl girl = new Girl() { Name="娇娇"};
     Console.WriteLine(girl.Name + ":给你礼物!我是:gg" + this.name);
 }