diff --git a/src/Generator/Generators/CSharp/CSharpTextTemplate.cs b/src/Generator/Generators/CSharp/CSharpTextTemplate.cs index 5a8f2924..1091e04e 100644 --- a/src/Generator/Generators/CSharp/CSharpTextTemplate.cs +++ b/src/Generator/Generators/CSharp/CSharpTextTemplate.cs @@ -1785,7 +1785,7 @@ namespace CppSharp.Generators.CSharp @params.Add("int " + GeneratedIdentifier("forBases")); } - WriteLine("public unsafe static extern {0} {1}({2});", retType, + WriteLine("public static extern {0} {1}({2});", retType, GetFunctionIdentifier(function), string.Join(", ", @params)); NeedNewLine();