コード例 #1
0
        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);
            }
        }
コード例 #2
0
            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);
            }