diff --git a/src/Generator/Types/Std/Stdlib.cs b/src/Generator/Types/Std/Stdlib.cs index 2fe99a20..19defcb3 100644 --- a/src/Generator/Types/Std/Stdlib.cs +++ b/src/Generator/Types/Std/Stdlib.cs @@ -231,6 +231,9 @@ namespace CppSharp.Types.Std public override string CSharpSignature(CSharpTypePrinterContext ctx) { + if (ctx.CSharpKind == CSharpTypePrinterContextKind.Native) + return "Std.Map"; + var type = Type as TemplateSpecializationType; return string.Format("System.Collections.Generic.Dictionary<{0}, {1}>", type.Arguments[0].Type, type.Arguments[1].Type); diff --git a/src/Runtime/StdMap.cs b/src/Runtime/StdMap.cs new file mode 100644 index 00000000..53d22cb9 --- /dev/null +++ b/src/Runtime/StdMap.cs @@ -0,0 +1,11 @@ +using System; +using System.Runtime.InteropServices; + +namespace Std +{ + [StructLayout(LayoutKind.Sequential)] + public unsafe struct Map + { + + } +}