예제 #1
0
        protected bool Set <T, K>(T target, Expression <Func <T, K> > propertyExpression, K value)
        {
            var p = SimpleAccess.Property(propertyExpression) ?? throw new ArgumentException("Argument is not a property", "propertyExpression");

            return(this.Set(target, p, value));
        }
예제 #2
0
 protected bool Set <T>(Expression <Func <T> > propertyExpression, ref T field, T value)
 {
     return(this.Set <T>(SimpleAccess.Property(propertyExpression)?.Name ?? throw new ArgumentException("Argument is not a property", "propertyExpression"), ref field, value));
 }