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