Guest User

Untitled

a guest
Oct 23rd, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. public void Update(Foo foo)
  2. {
  3. UpdateFirstPart(foo.First);
  4. UpdateSecondPart(foo.Second);
  5. UpdateThirdPart(foo.Third);
  6. }
  7.  
  8. class Foo
  9. {
  10. public int Id;
  11.  
  12. public Some1 First;
  13.  
  14. public Some2 Second;
  15.  
  16. public Some3 Third;
  17. }
  18.  
  19. public void Update(Foo foo)
  20. {
  21. lock(_locker)
  22. {
  23. UpdateFirstPart(foo.First);
  24. UpdateSecondPart(foo.Second);
  25. UpdateThirdPart(foo.Third);
  26. }
  27. }
Add Comment
Please, Sign In to add comment