示例#1
0
        protected internal override Expression VisitAsyncLambda <TDelegate>(AsyncCSharpExpression <TDelegate> node)
        {
            var parameters = Visit(nameof(AsyncCSharpExpression <TDelegate> .Parameters), node.Parameters);

            var body = Visit(node.Body);

            return(Push(node, parameters, new XElement(nameof(AsyncCSharpExpression <TDelegate> .Body), body)));
        }
示例#2
0
 protected internal virtual Expression VisitAsyncLambda <TDelegate>(AsyncCSharpExpression <TDelegate> node)
 {
     return(node.Update(Visit(node.Body), VisitAndConvert <ParameterExpression>(node.Parameters, nameof(VisitAsyncLambda))));
 }