public PropertyBinding(object o, Expression <Func <object> > property) { _object = o; _accessor = PropertyAccessor.GetAccessor(property); }
private PropertyAccessor _accessor; // The property accessor to set and get the value from public PropertyBinding(object o, string propertyName) { _object = o; _accessor = new PropertyAccessor(o.GetType().GetProperty(propertyName)); }