public PropertyRef(object instance, string name) : base(instance.GetType(), name) { // Setup initial conditions. this.instance = instance; // Wire up events. observable = instance as INotifyPropertyChanged; if (observable != null) observable.PropertyChanged += OnPropertyChanged; }