Esempio n. 1
0
 public IEnumerable <Expression> Process(
     PropertyInfo prop,
     IEnumerable <Expression> expressions,
     Expression modelExpression)
 {
     return(expressions
            .Append(TR.WriteAttr("title", TR.GetFormatted(Format, modelExpression))));
 }
Esempio n. 2
0
 public IEnumerable <Expression> Process(
     PropertyInfo prop,
     IEnumerable <Expression> e,
     Expression modelExpression)
 {
     if (Class != null)
     {
         e = e.Append(TR.WriteCssClass(Class));
     }
     if (Style != null)
     {
         e = e.Append(TR.WriteAttr("style", Expression.Constant(Style)));
     }
     return(e);
 }