SHARE
TWEET

Untitled

a guest Aug 19th, 2019 72 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top