コード例 #1
0
        public static void ProxyExample()
        {
            Console.WriteLine("---------- Proxy example");
            var payment = new OnlinePayment(new CashPayment());

            payment.Pay(200000);
            payment.Pay(1000);
        }
コード例 #2
0
        static void Main(string[] args)
        {
            //sample 1
            Console.WriteLine("---------- Proxy example");
            var payment = new OnlinePayment(new CashPayment());

            payment.Pay(200000);
            payment.Pay(1000);
        }