Advertisement
staafl

t4 runtime template usage example

Aug 8th, 2013
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.36 KB | None | 0 0
  1. using System;
  2. using System.Diagnostics;
  3. using System.IO;
  4. using System.Text;
  5.  
  6. namespace ConsoleApplication1
  7. {
  8.     class Program
  9.     {
  10.         static void Main()
  11.         {
  12.             File.WriteAllText("table.html", new CharactersTableT4 { Encoding = Encoding.GetEncoding(1251) }.TransformText());
  13.             Process.Start("table.html");
  14.         }
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement