public string BuildText(IPlaceholderSupplier dataSource, string text)
 {
     if (text == null)
     {
         return(null);
     }
     return(PlaceholderRegex.Replace(text, match => dataSource.GetPlaceholderValue(match.Value)));
 }
예제 #2
0
 public string BuildText(IPlaceholderSupplier dataSource)
 {
     return(Document.PlaceholderRegex.Replace(Text, match => EvaluatePlaceholder(match.Value, dataSource.GetPlaceholderValue(match.Value))));
 }