Exemplo n.º 1
0
 public override void Format(CodeFile file, Tabulator tabulator)
 {
     _file = file;
     tabulator.AppendFormatLine("using System;");
     tabulator.AppendFormatLine("using System.Runtime.InteropServices;");
     tabulator.AppendLine("");
     base.Format(file, tabulator);
 }
Exemplo n.º 2
0
 protected override void BeforeFillNamespace(Tabulator tabulator, Namespace value)
 {
     BeginCodeBlock(tabulator, FormatPatterns.PatternClass, "Version");
     tabulator.AppendFormatLineWithoutTabs("#if __UNIFIED__");
     tabulator.AppendFormatLine("public const string Dll = \"{0}\";", "__Internal");
     tabulator.AppendFormatLineWithoutTabs("#else");
     tabulator.AppendFormatLine("public const string Dll = \"{0}\";", _file.LibraryName);
     tabulator.AppendFormatLineWithoutTabs("#endif");
     EndCodeBlock(tabulator);
 }