예제 #1
0
        public Action <object, T> GetSetter <T>(IStateMember member)
        {
            ParameterExpression instance = Expression.Parameter(typeof(object));
            ParameterExpression value    = Expression.Parameter(typeof(T));

            Expression <Action <object, T> > lambda =
                Expression.Lambda <Action <object, T> >
                    (member.GetSetExpression(instance, value),
                    "Setter_" + member.Name,
                    new[] { instance, value });

            return(_compiler.Compile(lambda));
        }
 public Expression GetSetExpression(Expression obj, Expression value)
 {
     return(_underlying.GetSetExpression(obj, value.Convert(_underlying.MemberType)));
 }
 public Expression GetSetExpression(Expression obj, Expression value)
 {
     return(_underlying.GetSetExpression(obj, value));
 }
예제 #4
0
 public Expression GetSetExpression(Expression obj, Expression value)
 {
     return(_stateMember.GetSetExpression(obj, value));
 }