Beispiel #1
0
        private static void ProxyVirtual()
        {
            IImage imageProxy = new ImageProxy("Flower");

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

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