Beispiel #1
0
 /// <summary>
 /// Replaces the tokens in a buffer with the replacement string
 /// </summary>
 /// <param name="buffer">Buffer to update</param>
 /// <param name="tokenToReplace">replacement data</param>
 public virtual void ReplaceTokens(ref string buffer, ReplacePairToken tokenToReplace)
 {
     buffer = buffer.Replace(tokenToReplace.Token, tokenToReplace.Replacement);
 }
 /// <summary>
 /// Replaces the tokens in a buffer with the replacement string
 /// </summary>
 /// <param name="buffer">Buffer to update</param>
 /// <param name="tokenToReplace">replacement data</param>
 public virtual void ReplaceTokens(ref string buffer, ReplacePairToken tokenToReplace)
 {
     buffer = buffer.Replace(tokenToReplace.Token, tokenToReplace.Replacement);
 }