From 000b45cf2bb7c8cf5aa1356c42b07d2b68b54568 Mon Sep 17 00:00:00 2001 From: triton Date: Tue, 5 Nov 2013 03:51:49 +0000 Subject: [PATCH] Fixed duplicated vtable delegate generation by changing the way the unique name is generated. Previously, we could get duplicated names due to different named methods (setFoo and setFoo1) having overloads (and names for them would be setFoo11 [id: 11] and setFoo11 [id: 1]). --- src/Generator/Generators/CSharp/CSharpTextTemplate.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Generator/Generators/CSharp/CSharpTextTemplate.cs b/src/Generator/Generators/CSharp/CSharpTextTemplate.cs index 868e53e6..5e9649f3 100644 --- a/src/Generator/Generators/CSharp/CSharpTextTemplate.cs +++ b/src/Generator/Generators/CSharp/CSharpTextTemplate.cs @@ -2302,7 +2302,7 @@ namespace CppSharp.Generators.CSharp var index = overloads.IndexOf(function); if (index >= 0) - identifier += index.ToString(CultureInfo.InvariantCulture); + identifier += "_" + index.ToString(CultureInfo.InvariantCulture); return identifier; }