Guest User

Untitled

a guest
Apr 22nd, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. public int MyProperty {
  2. get { return myProperty; }
  3. set
  4. {
  5. myProperty = value;
  6. RaisePropertyChanged( () => MyProperty );
  7. }
  8. }
  9.  
  10. string propertyName = Reflect.GetProperty(() => SomeProperty).Name;
  11.  
  12. MyClass o;
  13.  
  14. PropertyInfo[] properties = o.GetType().GetProperties(
  15. BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Instance
  16. );
Add Comment
Please, Sign In to add comment