private static void ProxyVirtual() { IImage imageProxy = new ImageProxy("Flower"); imageProxy.DisplayImage(); imageProxy.DisplayImage(); }
public static void TestVirtualProxy() { Console.WriteLine("----------------------Virtual Proxy----------------------"); ISubject image = new ImageProxy(); image.DisplayImage(); image.DisplayImage(); Console.WriteLine("---------------------------------------------------\n"); }