public static string GetString(this TokenizedWriter writer, Func <string, IStringToken> resolver) { using (var sw = new StringWriter()) { writer.Write(sw, resolver); return(sw.ToString()); } }
public static void Write(this TokenizedWriter tokenizedWriter, TextWriter writer, IStringTokenProvider provider) { tokenizedWriter.Write(writer, provider.Get); }