예제 #1
0
        public Expression ResolveMemberAccess(Expression resolvedSourceExpression, MemberInfo memberInfo, IMappingResolver mappingResolver, IMappingResolutionContext context)
        {
            ArgumentUtility.CheckNotNull("resolvedSourceExpression", resolvedSourceExpression);
            ArgumentUtility.CheckNotNull("memberInfo", memberInfo);
            ArgumentUtility.CheckNotNull("mappingResolver", mappingResolver);
            ArgumentUtility.CheckNotNull("context", context);

            return(MemberAccessResolver.ResolveMemberAccess(resolvedSourceExpression, memberInfo, mappingResolver, this, context));
        }
예제 #2
0
        public static Expression ResolveMemberAccess(
            Expression resolvedSourceExpression,
            MemberInfo memberInfo,
            IMappingResolver mappingResolver,
            IMappingResolutionStage mappingResolutionStage,
            IMappingResolutionContext mappingResolutionContext)
        {
            ArgumentUtility.CheckNotNull("resolvedSourceExpression", resolvedSourceExpression);
            ArgumentUtility.CheckNotNull("memberInfo", memberInfo);
            ArgumentUtility.CheckNotNull("mappingResolver", mappingResolver);
            ArgumentUtility.CheckNotNull("mappingResolutionStage", mappingResolutionStage);
            ArgumentUtility.CheckNotNull("mappingResolutionContext", mappingResolutionContext);

            var resolver = new MemberAccessResolver(memberInfo, mappingResolver, mappingResolutionStage, mappingResolutionContext);

            return(resolver.Visit(resolvedSourceExpression));
        }