public IDisposable BeginNamespace(string codeNamespace)
 {
     transform.WriteLine(string.Format("namespace {0}{1}{{",
                                       code.EscapeNamespace(codeNamespace),
                                       Environment.NewLine));
     transform.PushIndent("    ");
     return(new CodeBlock(EndBlock));
 }
Exemplo n.º 2
0
 public void WriteLine(string value = null, params object[] args)
 {
     _transform.WriteLine(value ?? string.Empty, args);
 }