public override void ToString(StringBuilder sb, ScopedDictionary <string, ValueProviderBase> variables, string afterToken) { sb.Append("["); sb.Append("d:"); sb.Append(TemplateUtils.ScapeColon(this.dateTimeExpression)); if (afterToken.HasItems()) { sb.Append(afterToken); } sb.Append("]"); if (Variable.HasItems()) { sb.Append(" as " + Variable); } }
public override void ToString(StringBuilder sb, ScopedDictionary <string, ValueProviderBase> variables) { sb.Append("@"); if (IsRaw) { sb.Append("raw"); } ValueProvider !.ToStringBrackets(sb, variables, Format.HasText() ? (":" + TemplateUtils.ScapeColon(Format)) : null); }