Advertisement
Guest User

MVVM Light WinRT bug in Debug mode

a guest
Apr 4th, 2013
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.39 KB | None | 0 0
  1. public abstract class BaseModel : ObservableObject
  2. {
  3.     public string Title
  4.     {
  5.         get { return title; }
  6.         set { Set("Title", ref title, value); }
  7.     }
  8.     private string title;
  9. }
  10.  
  11. public class ChildModel : BaseModel
  12. {        
  13. }
  14.  
  15. ///////
  16.  
  17. var child = new ChildModel { Title = "temp" };
  18.  
  19. //  myType.GetTypeInfo().GetDeclaredProperty(propertyName) returns null for "Title"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement