Guest User

Untitled

a guest
Oct 22nd, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. public override bool TryInvokeMember(
  2. InvokeMemberBinder binder,
  3. object[] args,
  4. out object result)
  5. {
  6. string arg = GetValue(args);
  7. string methodName = binder.Name;
  8.  
  9. if (methodName == "Tag" && arg != null)
  10. {
  11. result = ToString().Tag(arg);
  12. }
  13. else
  14. {
  15. _props[methodName] = arg ?? string.Empty;
  16. result = this;
  17. }
  18.  
  19. return true;
  20. }
Add Comment
Please, Sign In to add comment