Browse Source

Added support for the GenerateLibraryNamespace option in the C# generator.

pull/1/head
triton 12 years ago
parent
commit
6b711dc205
  1. 4
      src/Generator/Generators/CSharp/CSharpTextTemplate.cs

4
src/Generator/Generators/CSharp/CSharpTextTemplate.cs

@ -52,11 +52,15 @@ namespace Cxxi.Generators.CSharp @@ -52,11 +52,15 @@ namespace Cxxi.Generators.CSharp
WriteLine("using System.Runtime.InteropServices;");
NewLine();
if (Options.GenerateLibraryNamespace)
{
WriteLine("namespace {0}", SafeIdentifier(Driver.Options.LibraryName));
WriteStartBraceIndent();
}
GenerateDeclarations();
if (Options.GenerateLibraryNamespace)
WriteCloseBraceIndent();
}

Loading…
Cancel
Save