예제 #1
0
        public void Start()
        {
            Subject realMan   = new RealSubject();
            Subject robotBody = new Proxy(realMan as RealSubject);

            robotBody.Request();
        }
예제 #2
0
        public override void Request()
        {
            if (subject == null)
            {
                subject = new RealSubject();
            }

            subject.Request();
        }
예제 #3
0
 public Proxy(RealSubject subject)
 {
     this.subject = subject;
 }