diff --git a/src/Generator/Passes/DelegatesPass.cs b/src/Generator/Passes/DelegatesPass.cs index 0d301add..366ab905 100644 --- a/src/Generator/Passes/DelegatesPass.cs +++ b/src/Generator/Passes/DelegatesPass.cs @@ -236,7 +236,8 @@ namespace CppSharp.Passes .Replace("[MarshalAs(UnmanagedType.LPStr)] ", string.Empty) .Replace("[MarshalAs(UnmanagedType.LPWStr)] ", string.Empty) .Replace("global::", string.Empty).Replace("*", "Ptr") - .Replace('.', '_').Replace(' ', '_').Replace("::", "_"); + .Replace('.', '_').Replace(' ', '_').Replace("::", "_") + .Replace("[]", "Array"); } private CSharpTypePrinter TypePrinter diff --git a/tests/CSharp/CSharp.cpp b/tests/CSharp/CSharp.cpp index 8233a3ec..c956816b 100644 --- a/tests/CSharp/CSharp.cpp +++ b/tests/CSharp/CSharp.cpp @@ -162,7 +162,7 @@ void Qux::setInterface(Qux *qux) { } -void Qux::v() +void Qux::v(int array[]) { } diff --git a/tests/CSharp/CSharp.h b/tests/CSharp/CSharp.h index 9596920c..c0b0e7a1 100644 --- a/tests/CSharp/CSharp.h +++ b/tests/CSharp/CSharp.h @@ -62,7 +62,7 @@ public: void obsolete(); Qux* getInterface(); void setInterface(Qux* qux); - virtual void v(); + virtual void v(int array[]); }; class DLL_API Bar : public Qux