From 5bb2f23a0254b1dba3aad1f497f4f89992d3e2ba Mon Sep 17 00:00:00 2001 From: triton Date: Mon, 8 Apr 2013 23:48:37 +0100 Subject: [PATCH] Fixed the name of the class that holds the static functions of a translation unit to match the CLI backend. --- src/Generator/Generators/CSharp/CSharpTextTemplate.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Generator/Generators/CSharp/CSharpTextTemplate.cs b/src/Generator/Generators/CSharp/CSharpTextTemplate.cs index 4e253fa6..3e85af9c 100644 --- a/src/Generator/Generators/CSharp/CSharpTextTemplate.cs +++ b/src/Generator/Generators/CSharp/CSharpTextTemplate.cs @@ -170,7 +170,8 @@ namespace Cxxi.Generators.CSharp if (@namespace.HasFunctions) { - WriteLine("public partial class " + SafeIdentifier(Options.LibraryName)); + WriteLine("public partial class {0}{1}", SafeIdentifier(Options.LibraryName), + TranslationUnit.FileNameWithoutExtension); WriteStartBraceIndent(); // Generate all the function declarations for the module.