From 6c1e8fdbbf93d75445623bba2313f048f7f5f70a Mon Sep 17 00:00:00 2001 From: triton Date: Wed, 21 Aug 2013 03:16:56 +0100 Subject: [PATCH] When generating the internal name for a function, take into account its original function. --- src/Generator/Generators/CSharp/CSharpTextTemplate.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Generator/Generators/CSharp/CSharpTextTemplate.cs b/src/Generator/Generators/CSharp/CSharpTextTemplate.cs index b39c7fef..92581e1b 100644 --- a/src/Generator/Generators/CSharp/CSharpTextTemplate.cs +++ b/src/Generator/Generators/CSharp/CSharpTextTemplate.cs @@ -2052,6 +2052,9 @@ namespace CppSharp.Generators.CSharp if (!function.IsProcessed || function.ExplicityIgnored) return; + if (function.OriginalFunction != null) + function = function.OriginalFunction; + PushBlock(CSharpBlockKind.InternalsClassMethod); GenerateDeclarationCommon(function); WriteLine("[SuppressUnmanagedCodeSecurity]");