Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [AttributeUsage(AttributeTargets.Property)]
- public class MyAttribute : Attribute
- {
- // How to change the tragetClass.Name when access by get/set
- }
- public class TargetClass
- {
- [MyAttribute]
- public string Name { get; set; }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement