Guest User

Untitled

a guest
Aug 19th, 2019
75
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [AttributeUsage(AttributeTargets.Property)]
  2. public class MyAttribute : Attribute
  3. {
  4. // How to change the tragetClass.Name when access by get/set
  5. }
  6.  
  7. public class TargetClass
  8. {
  9. [MyAttribute]
  10. public string Name { get; set; }
  11. }
RAW Paste Data