Пример #1
0
        static void Main(string[] args)
        {
            ObjectRepository.Add("object1", new Object());
            ObjectRepository.Add("dir/obj", new Object());
            IObject proxy = new ProxyObj("object1");

            Console.WriteLine(proxy.Method(15));
            proxy = new ProxyObj("dir/obj");
            Console.WriteLine(proxy.Method(15));
        }