protected override Expression VisitStatementExpression(StatementExpression sex)
 {
     if(sex.Body is PartialExpression)
     {
         return Visit(sex.Body);
     }
     else
     {
         return sex;
     }
 }
 protected override Expression VisitStatementExpression(StatementExpression sex)
 {
     if(sex.Body is BlockHelperExpression)
     {
         return Visit(sex.Body);
     }
     else
     {
         return sex;
     }
 }
 protected override Expression VisitStatementExpression(StatementExpression sex)
 {
     if(sex.Body is PathExpression)
     {
         var writeMethod = typeof(TextWriter).GetMethod("Write", new [] { typeof(object) });
         return Expression.Call(
             Expression.Property(
                 _context.BindingContext,
                 "TextWriter"),
             writeMethod,
             new[] { Visit(sex.Body) });
     }
     else
     {
         return Visit(sex.Body);
     }
 }
 protected virtual Expression VisitStatementExpression(StatementExpression sex)
 {
     return sex;
 }
Example #5
0
 protected virtual Expression VisitStatementExpression(StatementExpression sex)
 {
     return(sex);
 }