Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2014
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.24 KB | None | 0 0
  1.         public IMachine Machine
  2.         {
  3.             get { return machine; }
  4.             set
  5.             {
  6.                 if (machine != null)
  7.                 {
  8.                     // unsubscribe events
  9.                 }
  10.  
  11.                 machine = value;
  12.  
  13.                 if (machine != null)
  14.                 {
  15.                     // subscribe events
  16.                 }
  17.             }
  18.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement