protected override Expression VisitStaticExpression(StaticExpression stex)
 {
     var writeMethod = typeof(HandlebarsExtensions).GetMethod("WriteSafeString", new [] { typeof(TextWriter), typeof(string) });
     return Expression.Call(
         writeMethod,
         Expression.Property(
             _context.BindingContext,
             "TextWriter"),
         Expression.Constant(stex.Value));
 }
Exemple #2
0
        protected override Expression VisitStaticExpression(StaticExpression stex)
        {
            var writeMethod = typeof(HandlebarsExtensions).GetMethod("WriteSafeString", new [] { typeof(TextWriter), typeof(string) });

            return(Expression.Call(
                       writeMethod,
                       Expression.Property(
                           _context.BindingContext,
                           "TextWriter"),
                       Expression.Constant(stex.Value)));
        }
 protected virtual Expression VisitStaticExpression(StaticExpression stex)
 {
     return stex;
 }
Exemple #4
0
 protected virtual Expression VisitStaticExpression(StaticExpression stex)
 {
     return(stex);
 }