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