コード例 #1
0
        static void Main(string[] args)
        {
            var prices = new ComponentPriceProxy();

            Console.WriteLine("CPU Price: {0}", prices.CpuPrice);
            Thread.Sleep(500);
            Console.WriteLine("RAM Price: {0}", prices.RamPrice);
            Thread.Sleep(500);
            Console.WriteLine("SSD Price: {0}", prices.SsdPrice);

            // subject
            // realsubject
            // proxy

            Console.ReadLine();
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: aly-ba/methodes
        static void Main(string[] args)
        {
            var prices = new ComponentPriceProxy();

            Console.WriteLine("CPU Price: {0}", prices.CpuPrice);
            Thread.Sleep(500);
            Console.WriteLine("RAM Price: {0}", prices.RamPrice);
            Thread.Sleep(500);
            Console.WriteLine("SSD Price: {0}", prices.SsdPrice);

            // subject
            // realsubject
            // proxy

            Console.ReadLine();
        }