Advertisement
Guest User

Untitled

a guest
Dec 8th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. public class Foo
  2. {
  3. public object Bar
  4. {
  5. get
  6. {
  7. return Get();
  8. }
  9. set
  10. {
  11. Set(value);
  12. }
  13. }
  14.  
  15. private dynamic Get([CallerMemberName] name = null)
  16. {
  17. //Use name to get value out of dictionary
  18. }
  19.  
  20. private void Set(object value, [CallerMemberName] name = null)
  21. {
  22. //Use name to hash the given value
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement