public static DeferredSectionExpression DeferredSection(
     PathExpression path,
     IEnumerable <Expression> body,
     SectionEvaluationMode evalMode)
 {
     return(new DeferredSectionExpression(path, body, evalMode));
 }
 public static DeferredSectionExpression DeferredSection(
     PathExpression path,
     IEnumerable<Expression> body,
     SectionEvaluationMode evalMode)
 {
     return new DeferredSectionExpression(path, body, evalMode);
 }
Ejemplo n.º 3
0
 protected override Expression VisitPathExpression(PathExpression pex)
 {
     return(Expression.Call(
                Expression.Constant(this),
                new Func <BindingContext, string, object>(ResolvePath).Method,
                _context.BindingContext,
                Expression.Constant(pex.Path)));
 }
Ejemplo n.º 4
0
 protected override Expression VisitPathExpression(PathExpression pex)
 {
     return Expression.Call(
         Expression.Constant(this),
         new Func<BindingContext, string, object>(ResolvePath).Method,
         _context.BindingContext,
         Expression.Constant(pex.Path));
 }
 public DeferredSectionExpression(
     PathExpression path,
     IEnumerable<Expression> body,
     SectionEvaluationMode evalMode)
 {
     _path = path;
     _body = body;
     _evalMode = evalMode;
 }
 public DeferredSectionExpression(
     PathExpression path,
     IEnumerable <Expression> body,
     SectionEvaluationMode evalMode)
 {
     _path     = path;
     _body     = body;
     _evalMode = evalMode;
 }
 public DeferredBlockAccumulatorContext(Expression startingNode)
     : base(startingNode)
 {
     startingNode  = UnwrapStatement(startingNode);
     _startingNode = (PathExpression)startingNode;
 }
 public DeferredBlockAccumulatorContext(Expression startingNode)
     : base(startingNode)
 {
     startingNode = UnwrapStatement(startingNode);
     _startingNode = (PathExpression)startingNode;
 }
 protected virtual Expression VisitPathExpression(PathExpression pex)
 {
     return pex;
 }
Ejemplo n.º 10
0
 protected virtual Expression VisitPathExpression(PathExpression pex)
 {
     return(pex);
 }