daily pastebin goal
81%
SHARE
TWEET

Untitled

a guest Apr 22nd, 2018 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. );
RAW Paste Data
Top