示例#1
0
        public PropertyBinding(object o, Expression <Func <object> > property)
        {
            _object = o;

            _accessor = PropertyAccessor.GetAccessor(property);
        }
示例#2
0
        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));
        }