コード例 #1
0
        public TReturn Compose(JObject response)
        {
            var visitor = new ResponseComposerVisitor(response, this.context);

            var substituted = visitor.Visit(selector) as Expression <Func <TQueryType, TReturn> >;

            return(substituted.Compile()(default));
コード例 #2
0
            private Expression CreateInitializer(
                Type elementType,
                object element,
                Expression childExpression)
            {
                var childVisitor = new ResponseComposerVisitor(element as JToken, this.context);
                var visited      = childVisitor.Visit(childExpression);

                return(((LambdaExpression)visited).Body);
            }