public static PropertyBindingBuilder.SourceBinding <T> Property <T> (this BindingList list, IPropertyBinding binding) { var builder = PropertyBindingBuilder.Create <T> (binding); list.Add(builder.Binding); return(builder); }
public static PropertyBindingBuilder.SourceBinding <T> Property <OwnerT, T> (this BindingList list, OwnerT source, Expression <Func <OwnerT, T> > property) where OwnerT : INotifyPropertyChanged { var builder = PropertyBindingBuilder.Create(source, property); list.Add(builder.Binding); return(builder); }