Browse Source

Fixed the name of the class that holds the static functions of a translation unit to match the CLI backend.

pull/1/head
triton 12 years ago
parent
commit
5bb2f23a02
  1. 3
      src/Generator/Generators/CSharp/CSharpTextTemplate.cs

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

@ -170,7 +170,8 @@ namespace Cxxi.Generators.CSharp
if (@namespace.HasFunctions) if (@namespace.HasFunctions)
{ {
WriteLine("public partial class " + SafeIdentifier(Options.LibraryName)); WriteLine("public partial class {0}{1}", SafeIdentifier(Options.LibraryName),
TranslationUnit.FileNameWithoutExtension);
WriteStartBraceIndent(); WriteStartBraceIndent();
// Generate all the function declarations for the module. // Generate all the function declarations for the module.

Loading…
Cancel
Save