示例#1
0
        public ResolutionResult ResolveValue(ResolutionContext context)
        {
            var result = new ResolutionResult(context);

            return(SourceResolvers.Aggregate(result, (current, resolver) => resolver.Resolve(current)));
        }
示例#2
0
 public Expression GetExpression(Expression instanceParameter)
 {
     return(SourceResolvers.Aggregate(instanceParameter,
                                      (parameter, getter) => Expression.MakeMemberAccess(parameter, getter.MemberInfo)));
 }