Guest User

Untitled

a guest
Jun 20th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. var props = from p in c.GetProperties()
  2. where p.IsDefined(typeof(DemoAttribute), false)
  3. select p;
  4.  
  5. foreach(var p in props)
  6. {
  7. Console.WriteLine($"Fount property: {p.Name}");
  8. }
Add Comment
Please, Sign In to add comment