From 51bff527e3cb01a3c02ff80991e58c62e0641c54 Mon Sep 17 00:00:00 2001 From: triton Date: Mon, 13 Jan 2014 15:53:03 +0000 Subject: [PATCH] Fixed native function mangling scheme. --- src/Generator/Generators/CSharp/CSharpTextTemplate.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Generator/Generators/CSharp/CSharpTextTemplate.cs b/src/Generator/Generators/CSharp/CSharpTextTemplate.cs index 536196cf..07155233 100644 --- a/src/Generator/Generators/CSharp/CSharpTextTemplate.cs +++ b/src/Generator/Generators/CSharp/CSharpTextTemplate.cs @@ -2376,13 +2376,13 @@ namespace CppSharp.Generators.CSharp if (method != null) { if (method.IsConstructor) - functionName = "ctor_"; + functionName = "ctor"; else if (method.IsCopyConstructor) - functionName = "cctor_"; + functionName = "cctor"; else if (method.IsDestructor) - functionName = "dtor_"; - - functionName += GetMethodIdentifier(method); + functionName = "dtor"; + else + functionName = GetMethodIdentifier(method); } var identifier = SafeIdentifier(functionName);