public TProperty AddBinding <T, TProperty>(T obj, string propertyName) where T : class { var lambda = BindExtensions.GetPropertyEx <T, TProperty>(obj, propertyName); AddBinding(obj, lambda); return(lambda.Compile()(obj)); }
public object ObserveProperty <TInstance, TProperty>(string functionName, TInstance instance, string propertyName) where TInstance : INotifyPropertyChanged { var property = BindExtensions.GetPropertyEx <TInstance, TProperty>(instance, propertyName); return(Observe(functionName, null, () => instance.RxValue(property))); }