Example #1
0
 public void Open()
 {
     lock (gate)
     {
         valve.Open();
     }
 }
Example #2
0
 public void Open()
 {
     lock (_gate) {
         _valve.Open();
     }
 }