Пример #1
0
        private static void ProxyVirtual()
        {
            IImage imageProxy = new ImageProxy("Flower");

            imageProxy.DisplayImage();
            imageProxy.DisplayImage();
        }
Пример #2
0
        public static void TestVirtualProxy()
        {
            Console.WriteLine("----------------------Virtual Proxy----------------------");
            ISubject image = new ImageProxy();

            image.DisplayImage();
            image.DisplayImage();
            Console.WriteLine("---------------------------------------------------\n");
        }