public override void Reqest()
 {
     if (_realObject == null)
     {
         _realObject = new RealSubject();
     }
     _realObject.Reqest();
 }      
Exemple #2
0
        public override void Request()
        {
            // Use 'lazy initialization'
            if (_realSubject == null)
            {
                _realSubject = new RealSubject();
            }

            _realSubject.Request();
        }