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