예제 #1
0
		public string ExpandVariables(string name)
		{
			var variablesBuilder = new TextTemplatingVariablesStringBuilder(name, this);
			foreach (TextTemplatingVariableLocation variableLocation in GetVariables(name)) {
				variablesBuilder.AppendTextBeforeVariable(variableLocation);
				variablesBuilder.AppendVariable(variableLocation);
			}
			variablesBuilder.AppendRemaining();
			return variablesBuilder.ToString();
		}
        public string ExpandVariables(string name)
        {
            var variablesBuilder = new TextTemplatingVariablesStringBuilder(name, this);

            foreach (TextTemplatingVariableLocation variableLocation in GetVariables(name))
            {
                variablesBuilder.AppendTextBeforeVariable(variableLocation);
                variablesBuilder.AppendVariable(variableLocation);
            }
            variablesBuilder.AppendRemaining();
            return(variablesBuilder.ToString());
        }