public void Operation() { Console.WriteLine("Operation in proxy"); if (_realSubject == null) { _realSubject = new RealSubject(); } _realSubject.Operation(); }
public static void Foo(Subject subject) { subject.Operation(); }
public void Operation() { Console.WriteLine("Operation in proxy"); if (_realSubject == null) { _realSubject = new RealSubject(); } _realSubject.Operation(); }
public static void Foo(Subject subject) { subject.Operation(); }