From e160b3a296a01bdae18a45e75ceda051c3ba6cfa Mon Sep 17 00:00:00 2001 From: josetr <37419832+josetr@users.noreply.github.com> Date: Thu, 29 Sep 2022 17:09:35 +0100 Subject: [PATCH] Add generate function template specializations whitelist --- src/CppParser/Bindings/CLI/CppParser.cpp | 48 + src/CppParser/Bindings/CLI/CppParser.h | 17 + .../CppSharp.CppParser.cs | 3673 ++++++++++------ .../CSharp/i686-apple-darwin12.4.0/Std.cs | 648 +-- .../i686-pc-win32-msvc/CppSharp.CppParser.cs | 3575 +++++++++------ .../Bindings/CSharp/i686-pc-win32-msvc/Std.cs | 544 +-- .../CppSharp.CppParser.cs | 3673 ++++++++++------ .../CSharp/x86_64-apple-darwin12.4.0/Std.cs | 648 +-- .../CppSharp.CppParser.cs | 3576 ++++++++------- .../CSharp/x86_64-linux-gnu-cxx11abi/Std.cs | 570 +-- .../x86_64-linux-gnu/CppSharp.CppParser.cs | 3858 ++++++++++------- .../Bindings/CSharp/x86_64-linux-gnu/Std.cs | 586 +-- .../CppSharp.CppParser.cs | 3575 +++++++++------ .../CSharp/x86_64-pc-win32-msvc/Std.cs | 544 +-- src/CppParser/CppParser.cpp | 1 + src/CppParser/CppParser.h | 1 + src/CppParser/Parser.cpp | 7 + src/CppParser/Parser.h | 1 + tests/CSharp/CSharp.Gen.cs | 1 + 19 files changed, 14007 insertions(+), 11539 deletions(-) diff --git a/src/CppParser/Bindings/CLI/CppParser.cpp b/src/CppParser/Bindings/CLI/CppParser.cpp index 6c590aa4..000a7d3f 100644 --- a/src/CppParser/Bindings/CLI/CppParser.cpp +++ b/src/CppParser/Bindings/CLI/CppParser.cpp @@ -197,6 +197,25 @@ void CppSharp::Parser::CppParserOptions::ClearSupportedStdTypes() ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->clearSupportedStdTypes(); } +::System::String^ CppSharp::Parser::CppParserOptions::GetSupportedFunctionTemplates(unsigned int i) +{ + auto __ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getSupportedFunctionTemplates(i); + if (__ret == nullptr) return nullptr; + return (__ret == 0 ? nullptr : clix::marshalString(__ret)); +} + +void CppSharp::Parser::CppParserOptions::AddSupportedFunctionTemplates(::System::String^ s) +{ + auto ___arg0 = clix::marshalString(s); + auto __arg0 = ___arg0.c_str(); + ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->addSupportedFunctionTemplates(__arg0); +} + +void CppSharp::Parser::CppParserOptions::ClearSupportedFunctionTemplates() +{ + ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->clearSupportedFunctionTemplates(); +} + CppSharp::Parser::CppParserOptions::CppParserOptions(CppSharp::Parser::CppParserOptions^ _0) { __ownsNativeInstance = true; @@ -400,6 +419,29 @@ void CppSharp::Parser::CppParserOptions::SupportedStdTypes::set(::System::Collec ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->SupportedStdTypes = _tmpvalue; } +::System::Collections::Generic::List<::System::String^>^ CppSharp::Parser::CppParserOptions::SupportedFunctionTemplates::get() +{ + auto _tmp__SupportedFunctionTemplates = gcnew ::System::Collections::Generic::List<::System::String^>(); + auto __list0 = NativePtr->SupportedFunctionTemplates; + for(auto _element : __list0) + { + auto _marshalElement = clix::marshalString(_element); + _tmp__SupportedFunctionTemplates->Add(_marshalElement); + } + return _tmp__SupportedFunctionTemplates; +} + +void CppSharp::Parser::CppParserOptions::SupportedFunctionTemplates::set(::System::Collections::Generic::List<::System::String^>^ value) +{ + auto _tmpvalue = std::vector<::std::string>(); + for each(::System::String^ _element in value) + { + auto _marshalElement = clix::marshalString(_element); + _tmpvalue.push_back(_marshalElement); + } + ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->SupportedFunctionTemplates = _tmpvalue; +} + CppSharp::Parser::AST::ASTContext^ CppSharp::Parser::CppParserOptions::ASTContext::get() { return (NativePtr->ASTContext == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::ASTContext((class ::CppSharp::CppParser::AST::ASTContext*)NativePtr->ASTContext); @@ -564,6 +606,12 @@ unsigned int CppSharp::Parser::CppParserOptions::SupportedStdTypesCount::get() return __ret; } +unsigned int CppSharp::Parser::CppParserOptions::SupportedFunctionTemplatesCount::get() +{ + auto __ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getSupportedFunctionTemplatesCount(); + return __ret; +} + CppSharp::Parser::CppLinkerOptions::CppLinkerOptions(struct ::CppSharp::CppParser::CppLinkerOptions* native) : __ownsNativeInstance(false) { diff --git a/src/CppParser/Bindings/CLI/CppParser.h b/src/CppParser/Bindings/CLI/CppParser.h index ffe8a5c2..a4774f1f 100644 --- a/src/CppParser/Bindings/CLI/CppParser.h +++ b/src/CppParser/Bindings/CLI/CppParser.h @@ -129,6 +129,12 @@ namespace CppSharp void set(::System::Collections::Generic::List<::System::String^>^); } + property ::System::Collections::Generic::List<::System::String^>^ SupportedFunctionTemplates + { + ::System::Collections::Generic::List<::System::String^>^ get(); + void set(::System::Collections::Generic::List<::System::String^>^); + } + property CppSharp::Parser::AST::ASTContext^ ASTContext { CppSharp::Parser::AST::ASTContext^ get(); @@ -240,6 +246,11 @@ namespace CppSharp unsigned int get(); } + property unsigned int SupportedFunctionTemplatesCount + { + unsigned int get(); + } + ::System::String^ GetArguments(unsigned int i); void AddArguments(::System::String^ s); @@ -288,6 +299,12 @@ namespace CppSharp void ClearSupportedStdTypes(); + ::System::String^ GetSupportedFunctionTemplates(unsigned int i); + + void AddSupportedFunctionTemplates(::System::String^ s); + + void ClearSupportedFunctionTemplates(); + protected: bool __ownsNativeInstance; diff --git a/src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/CppSharp.CppParser.cs b/src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/CppSharp.CppParser.cs index 0e253d7d..f12e2fa5 100644 --- a/src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/CppSharp.CppParser.cs +++ b/src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/CppSharp.CppParser.cs @@ -103,7 +103,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.NativeLibrary managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.NativeLibrary managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -116,11 +128,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (NativeLibrary)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -140,7 +152,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected NativeLibrary(void* native, bool skipVTables = false) @@ -154,7 +166,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.NativeLibrary.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -162,7 +174,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.NativeLibrary.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -283,7 +295,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.Comment managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.Comment managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -296,11 +320,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Comment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -320,7 +344,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Comment(void* native, bool skipVTables = false) @@ -334,7 +358,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Comment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, kind); } @@ -342,7 +366,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Comment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.Comment.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.Comment.__Internal*) _0.__Instance); } @@ -409,11 +433,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (BlockContentComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -433,7 +457,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected BlockContentComment(void* native, bool skipVTables = false) @@ -446,7 +470,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BlockContentComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -455,7 +479,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BlockContentComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, Kind); } @@ -464,7 +488,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BlockContentComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.BlockContentComment.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.BlockContentComment.__Internal*) _0.__Instance); } @@ -513,11 +537,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (FullComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -537,7 +561,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected FullComment(void* native, bool skipVTables = false) @@ -550,7 +574,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FullComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -559,7 +583,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FullComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -639,11 +663,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (InlineContentComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -663,7 +687,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected InlineContentComment(void* native, bool skipVTables = false) @@ -676,7 +700,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.InlineContentComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -685,7 +709,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.InlineContentComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, Kind); } @@ -694,7 +718,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.InlineContentComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.InlineContentComment.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.InlineContentComment.__Internal*) _0.__Instance); } @@ -757,11 +781,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ParagraphComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -781,7 +805,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ParagraphComment(void* native, bool skipVTables = false) @@ -794,7 +818,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ParagraphComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -803,7 +827,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ParagraphComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -923,7 +947,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.BlockCommandComment.Argument managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.BlockCommandComment.Argument managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -936,11 +972,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Argument)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -960,7 +996,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Argument(void* native, bool skipVTables = false) @@ -974,7 +1010,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BlockCommandComment.Argument.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -982,7 +1018,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BlockCommandComment.Argument.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -1033,11 +1069,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (BlockCommandComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -1057,7 +1093,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected BlockCommandComment(void* native, bool skipVTables = false) @@ -1070,7 +1106,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BlockCommandComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -1079,7 +1115,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BlockCommandComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, Kind); } @@ -1088,7 +1124,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BlockCommandComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -1212,11 +1248,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ParamCommandComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -1236,7 +1272,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ParamCommandComment(void* native, bool skipVTables = false) @@ -1249,7 +1285,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ParamCommandComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -1258,7 +1294,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ParamCommandComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -1349,11 +1385,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TParamCommandComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -1373,7 +1409,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TParamCommandComment(void* native, bool skipVTables = false) @@ -1386,7 +1422,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TParamCommandComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -1395,7 +1431,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TParamCommandComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -1474,11 +1510,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (VerbatimBlockLineComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -1498,7 +1534,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected VerbatimBlockLineComment(void* native, bool skipVTables = false) @@ -1511,7 +1547,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VerbatimBlockLineComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -1520,7 +1556,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VerbatimBlockLineComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -1599,11 +1635,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (VerbatimBlockComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -1623,7 +1659,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected VerbatimBlockComment(void* native, bool skipVTables = false) @@ -1636,7 +1672,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VerbatimBlockComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -1645,7 +1681,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VerbatimBlockComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -1728,11 +1764,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (VerbatimLineComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -1752,7 +1788,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected VerbatimLineComment(void* native, bool skipVTables = false) @@ -1765,7 +1801,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VerbatimLineComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -1774,7 +1810,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VerbatimLineComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -1872,7 +1908,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.InlineCommandComment.Argument managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.InlineCommandComment.Argument managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -1885,11 +1933,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Argument)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -1909,7 +1957,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Argument(void* native, bool skipVTables = false) @@ -1923,7 +1971,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.InlineCommandComment.Argument.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -1931,7 +1979,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.InlineCommandComment.Argument.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -1982,11 +2030,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (InlineCommandComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -2006,7 +2054,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected InlineCommandComment(void* native, bool skipVTables = false) @@ -2019,7 +2067,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.InlineCommandComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -2028,7 +2076,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.InlineCommandComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -2135,11 +2183,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (HTMLTagComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -2159,7 +2207,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected HTMLTagComment(void* native, bool skipVTables = false) @@ -2172,7 +2220,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.HTMLTagComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -2181,7 +2229,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.HTMLTagComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, Kind); } @@ -2190,7 +2238,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.HTMLTagComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.HTMLTagComment.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.HTMLTagComment.__Internal*) _0.__Instance); } @@ -2252,7 +2300,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -2265,11 +2325,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Attribute)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -2289,7 +2349,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Attribute(void* native, bool skipVTables = false) @@ -2303,7 +2363,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -2311,7 +2371,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -2376,11 +2436,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (HTMLStartTagComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -2400,7 +2460,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected HTMLStartTagComment(void* native, bool skipVTables = false) @@ -2413,7 +2473,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.HTMLStartTagComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -2422,7 +2482,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.HTMLStartTagComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -2518,11 +2578,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (HTMLEndTagComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -2542,7 +2602,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected HTMLEndTagComment(void* native, bool skipVTables = false) @@ -2555,7 +2615,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.HTMLEndTagComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -2564,7 +2624,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.HTMLEndTagComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -2629,11 +2689,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TextComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -2653,7 +2713,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TextComment(void* native, bool skipVTables = false) @@ -2666,7 +2726,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TextComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -2675,7 +2735,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TextComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -2734,7 +2794,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.RawComment managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.RawComment managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -2747,11 +2819,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (RawComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -2771,7 +2843,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected RawComment(void* native, bool skipVTables = false) @@ -2785,7 +2857,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.RawComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -2793,7 +2865,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.RawComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -2901,7 +2973,7 @@ namespace CppSharp } private SourceLocation.__Internal __instance; - internal SourceLocation.__Internal __Instance { get { return __instance; } } + internal SourceLocation.__Internal __Instance => __instance; internal static SourceLocation __CreateInstance(__IntPtr native, bool skipVTables = false) { @@ -2980,7 +3052,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.SourceRange managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.SourceRange managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -2993,11 +3077,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (SourceRange)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -3017,7 +3101,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected SourceRange(void* native, bool skipVTables = false) @@ -3031,7 +3115,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.SourceRange.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.SourceRange.__Internal*) __Instance) = *((global::CppSharp.Parser.SourceRange.__Internal*) _0.__Instance); } @@ -3039,7 +3123,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.SourceRange.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -3190,7 +3274,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.Type managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.Type managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -3203,11 +3299,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Type)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -3227,7 +3323,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Type(void* native, bool skipVTables = false) @@ -3241,7 +3337,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Type.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, kind); } @@ -3249,7 +3345,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Type.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -3321,7 +3417,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.TypeQualifiers managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.TypeQualifiers managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -3334,11 +3442,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TypeQualifiers)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -3358,7 +3466,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TypeQualifiers(void* native, bool skipVTables = false) @@ -3372,7 +3480,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypeQualifiers.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.TypeQualifiers.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.TypeQualifiers.__Internal*) _0.__Instance); } @@ -3380,7 +3488,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypeQualifiers.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } public void Dispose() @@ -3458,7 +3566,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.QualifiedType managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.QualifiedType managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -3471,11 +3591,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (QualifiedType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -3495,7 +3615,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected QualifiedType(void* native, bool skipVTables = false) @@ -3509,7 +3629,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.QualifiedType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -3517,7 +3637,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.QualifiedType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.QualifiedType.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.QualifiedType.__Internal*) _0.__Instance); } @@ -3594,11 +3714,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TagType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -3618,7 +3738,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TagType(void* native, bool skipVTables = false) @@ -3631,7 +3751,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TagType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -3640,7 +3760,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TagType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -3698,11 +3818,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ArrayType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -3722,7 +3842,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ArrayType(void* native, bool skipVTables = false) @@ -3735,7 +3855,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ArrayType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -3744,7 +3864,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ArrayType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -3849,11 +3969,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (FunctionType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -3873,7 +3993,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected FunctionType(void* native, bool skipVTables = false) @@ -3886,7 +4006,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FunctionType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -3895,7 +4015,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FunctionType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -4023,11 +4143,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (PointerType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -4047,7 +4167,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected PointerType(void* native, bool skipVTables = false) @@ -4060,7 +4180,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PointerType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -4069,7 +4189,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PointerType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -4130,11 +4250,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (MemberPointerType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -4154,7 +4274,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected MemberPointerType(void* native, bool skipVTables = false) @@ -4167,7 +4287,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MemberPointerType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -4176,7 +4296,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MemberPointerType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -4224,11 +4344,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TypedefType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -4248,7 +4368,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TypedefType(void* native, bool skipVTables = false) @@ -4261,7 +4381,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypedefType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -4270,7 +4390,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypedefType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -4318,11 +4438,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (AttributedType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -4342,7 +4462,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected AttributedType(void* native, bool skipVTables = false) @@ -4355,7 +4475,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AttributedType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -4364,7 +4484,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AttributedType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -4429,11 +4549,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DecayedType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -4453,7 +4573,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DecayedType(void* native, bool skipVTables = false) @@ -4466,7 +4586,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DecayedType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -4475,7 +4595,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DecayedType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -4559,7 +4679,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.TemplateArgument managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.TemplateArgument managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -4572,11 +4704,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TemplateArgument)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -4596,7 +4728,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TemplateArgument(void* native, bool skipVTables = false) @@ -4610,7 +4742,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateArgument.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -4618,7 +4750,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateArgument.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.TemplateArgument.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.TemplateArgument.__Internal*) _0.__Instance); } @@ -4738,11 +4870,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TemplateSpecializationType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -4762,7 +4894,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TemplateSpecializationType(void* native, bool skipVTables = false) @@ -4775,7 +4907,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateSpecializationType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -4784,7 +4916,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateSpecializationType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -4906,11 +5038,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DependentTemplateSpecializationType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -4930,7 +5062,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DependentTemplateSpecializationType(void* native, bool skipVTables = false) @@ -4943,7 +5075,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DependentTemplateSpecializationType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -4952,7 +5084,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DependentTemplateSpecializationType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -5050,11 +5182,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TemplateParameterType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -5074,7 +5206,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TemplateParameterType(void* native, bool skipVTables = false) @@ -5087,7 +5219,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateParameterType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -5096,7 +5228,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateParameterType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -5198,11 +5330,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TemplateParameterSubstitutionType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -5222,7 +5354,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TemplateParameterSubstitutionType(void* native, bool skipVTables = false) @@ -5235,7 +5367,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateParameterSubstitutionType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -5244,7 +5376,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateParameterSubstitutionType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -5307,11 +5439,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (InjectedClassNameType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -5331,7 +5463,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected InjectedClassNameType(void* native, bool skipVTables = false) @@ -5344,7 +5476,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.InjectedClassNameType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -5353,7 +5485,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.InjectedClassNameType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -5419,11 +5551,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DependentNameType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -5443,7 +5575,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DependentNameType(void* native, bool skipVTables = false) @@ -5456,7 +5588,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DependentNameType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -5465,7 +5597,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DependentNameType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -5541,11 +5673,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (PackExpansionType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -5565,7 +5697,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected PackExpansionType(void* native, bool skipVTables = false) @@ -5578,7 +5710,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PackExpansionType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -5587,7 +5719,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PackExpansionType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -5621,11 +5753,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (UnaryTransformType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -5645,7 +5777,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected UnaryTransformType(void* native, bool skipVTables = false) @@ -5658,7 +5790,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnaryTransformType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -5667,7 +5799,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnaryTransformType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -5730,11 +5862,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (UnresolvedUsingType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -5754,7 +5886,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected UnresolvedUsingType(void* native, bool skipVTables = false) @@ -5767,7 +5899,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnresolvedUsingType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -5776,7 +5908,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnresolvedUsingType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -5824,11 +5956,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (VectorType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -5848,7 +5980,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected VectorType(void* native, bool skipVTables = false) @@ -5861,7 +5993,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VectorType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -5870,7 +6002,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VectorType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -5931,11 +6063,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (BuiltinType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -5955,7 +6087,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected BuiltinType(void* native, bool skipVTables = false) @@ -5968,7 +6100,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BuiltinType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -5977,7 +6109,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BuiltinType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -6267,7 +6399,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.Declaration managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.Declaration managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -6280,11 +6424,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Declaration)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -6304,7 +6448,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Declaration(void* native, bool skipVTables = false) @@ -6318,7 +6462,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Declaration.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, kind); } @@ -6326,7 +6470,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Declaration.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -6851,11 +6995,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DeclarationContext)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -6875,7 +7019,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DeclarationContext(void* native, bool skipVTables = false) @@ -6888,7 +7032,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DeclarationContext.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, kind); } @@ -6897,7 +7041,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DeclarationContext.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -7256,11 +7400,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TypedefNameDecl)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -7280,7 +7424,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TypedefNameDecl(void* native, bool skipVTables = false) @@ -7293,7 +7437,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypedefNameDecl.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, kind); } @@ -7302,7 +7446,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypedefNameDecl.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -7393,11 +7537,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TypedefDecl)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -7417,7 +7561,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TypedefDecl(void* native, bool skipVTables = false) @@ -7430,7 +7574,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypedefDecl.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -7439,7 +7583,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypedefDecl.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -7511,11 +7655,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TypeAlias)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -7535,7 +7679,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TypeAlias(void* native, bool skipVTables = false) @@ -7548,7 +7692,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypeAlias.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -7557,7 +7701,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypeAlias.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -7642,11 +7786,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Friend)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -7666,7 +7810,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Friend(void* native, bool skipVTables = false) @@ -7679,7 +7823,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Friend.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -7688,7 +7832,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Friend.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -7746,7 +7890,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.StatementObsolete managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.StatementObsolete managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -7759,11 +7915,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (StatementObsolete)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -7783,7 +7939,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected StatementObsolete(void* native, bool skipVTables = false) @@ -7797,7 +7953,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.StatementObsolete.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, str); var __arg0 = __basicString0.__Instance; @@ -7810,7 +7966,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.StatementObsolete.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -7907,11 +8063,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ExpressionObsolete)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -7931,7 +8087,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ExpressionObsolete(void* native, bool skipVTables = false) @@ -7944,7 +8100,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ExpressionObsolete.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, str); var __arg0 = __basicString0.__Instance; @@ -7958,7 +8114,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ExpressionObsolete.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -8012,11 +8168,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (BinaryOperatorObsolete)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -8036,7 +8192,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected BinaryOperatorObsolete(void* native, bool skipVTables = false) @@ -8049,7 +8205,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BinaryOperatorObsolete.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, str); var __arg0 = __basicString0.__Instance; @@ -8068,7 +8224,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BinaryOperatorObsolete.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -8174,11 +8330,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CallExprObsolete)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -8198,7 +8354,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CallExprObsolete(void* native, bool skipVTables = false) @@ -8211,7 +8367,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CallExprObsolete.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, str); var __arg0 = __basicString0.__Instance; @@ -8225,7 +8381,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CallExprObsolete.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -8319,11 +8475,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXConstructExprObsolete)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -8343,7 +8499,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXConstructExprObsolete(void* native, bool skipVTables = false) @@ -8356,7 +8512,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXConstructExprObsolete.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, str); var __arg0 = __basicString0.__Instance; @@ -8370,7 +8526,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXConstructExprObsolete.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -8476,11 +8632,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Parameter)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -8500,7 +8656,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Parameter(void* native, bool skipVTables = false) @@ -8513,7 +8669,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Parameter.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -8522,7 +8678,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Parameter.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -8717,11 +8873,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Function)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -8741,7 +8897,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Function(void* native, bool skipVTables = false) @@ -8754,7 +8910,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Function.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -8763,7 +8919,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Function.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -9174,11 +9330,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Method)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -9198,7 +9354,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Method(void* native, bool skipVTables = false) @@ -9211,7 +9367,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Method.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -9220,7 +9376,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Method.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -9530,11 +9686,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Item)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -9554,7 +9710,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Item(void* native, bool skipVTables = false) @@ -9567,7 +9723,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Enumeration.Item.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -9576,7 +9732,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Enumeration.Item.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -9635,11 +9791,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Enumeration)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -9659,7 +9815,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Enumeration(void* native, bool skipVTables = false) @@ -9672,7 +9828,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Enumeration.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -9681,7 +9837,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Enumeration.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -9837,11 +9993,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Variable)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -9861,7 +10017,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Variable(void* native, bool skipVTables = false) @@ -9874,7 +10030,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Variable.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -9883,7 +10039,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Variable.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -9981,7 +10137,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.BaseClassSpecifier managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.BaseClassSpecifier managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -9994,11 +10162,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (BaseClassSpecifier)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -10018,7 +10186,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected BaseClassSpecifier(void* native, bool skipVTables = false) @@ -10032,7 +10200,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BaseClassSpecifier.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -10040,7 +10208,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BaseClassSpecifier.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.BaseClassSpecifier.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.BaseClassSpecifier.__Internal*) _0.__Instance); } @@ -10167,11 +10335,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Field)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -10191,7 +10359,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Field(void* native, bool skipVTables = false) @@ -10204,7 +10372,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Field.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -10213,7 +10381,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Field.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -10338,11 +10506,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (AccessSpecifierDecl)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -10362,7 +10530,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected AccessSpecifierDecl(void* native, bool skipVTables = false) @@ -10375,7 +10543,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AccessSpecifierDecl.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -10384,7 +10552,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AccessSpecifierDecl.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -10425,7 +10593,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.VTableComponent managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.VTableComponent managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -10438,11 +10618,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (VTableComponent)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -10462,7 +10642,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected VTableComponent(void* native, bool skipVTables = false) @@ -10476,7 +10656,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VTableComponent.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -10484,7 +10664,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VTableComponent.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.VTableComponent.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.VTableComponent.__Internal*) _0.__Instance); } @@ -10578,7 +10758,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.VTableLayout managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.VTableLayout managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -10591,11 +10783,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (VTableLayout)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -10615,7 +10807,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected VTableLayout(void* native, bool skipVTables = false) @@ -10629,7 +10821,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VTableLayout.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -10637,7 +10829,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VTableLayout.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -10716,7 +10908,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.VFTableInfo managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.VFTableInfo managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -10729,11 +10933,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (VFTableInfo)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -10753,7 +10957,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected VFTableInfo(void* native, bool skipVTables = false) @@ -10767,7 +10971,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VFTableInfo.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -10775,7 +10979,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VFTableInfo.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -10879,7 +11083,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.LayoutField managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.LayoutField managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -10892,11 +11108,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (LayoutField)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -10916,7 +11132,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected LayoutField(void* native, bool skipVTables = false) @@ -10930,7 +11146,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.LayoutField.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -10938,7 +11154,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.LayoutField.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(other, null)) throw new global::System.ArgumentNullException("other", "Cannot be null because it is a C++ reference (&)."); var __arg0 = other.__Instance; @@ -11041,7 +11257,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.LayoutBase managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.LayoutBase managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -11054,11 +11282,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (LayoutBase)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -11078,7 +11306,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected LayoutBase(void* native, bool skipVTables = false) @@ -11092,7 +11320,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.LayoutBase.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -11100,7 +11328,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.LayoutBase.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(other, null)) throw new global::System.ArgumentNullException("other", "Cannot be null because it is a C++ reference (&)."); var __arg0 = other.__Instance; @@ -11220,7 +11448,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.ClassLayout managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.ClassLayout managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -11233,11 +11473,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ClassLayout)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -11257,7 +11497,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ClassLayout(void* native, bool skipVTables = false) @@ -11271,7 +11511,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ClassLayout.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -11279,7 +11519,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ClassLayout.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -11628,11 +11868,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Class)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -11652,7 +11892,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Class(void* native, bool skipVTables = false) @@ -11665,7 +11905,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Class.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -11674,7 +11914,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Class.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -12038,11 +12278,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Template)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -12062,7 +12302,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Template(void* native, bool skipVTables = false) @@ -12075,7 +12315,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Template.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, kind); } @@ -12084,7 +12324,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Template.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -12093,7 +12333,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Template.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -12214,11 +12454,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TypeAliasTemplate)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -12238,7 +12478,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TypeAliasTemplate(void* native, bool skipVTables = false) @@ -12251,7 +12491,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypeAliasTemplate.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -12260,7 +12500,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypeAliasTemplate.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -12333,11 +12573,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TemplateParameter)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -12357,7 +12597,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TemplateParameter(void* native, bool skipVTables = false) @@ -12370,7 +12610,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateParameter.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, kind); } @@ -12379,7 +12619,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateParameter.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -12498,11 +12738,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TemplateTemplateParameter)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -12522,7 +12762,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TemplateTemplateParameter(void* native, bool skipVTables = false) @@ -12535,7 +12775,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateTemplateParameter.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -12544,7 +12784,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateTemplateParameter.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -12657,11 +12897,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TypeTemplateParameter)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -12681,7 +12921,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TypeTemplateParameter(void* native, bool skipVTables = false) @@ -12694,7 +12934,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypeTemplateParameter.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -12703,7 +12943,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypeTemplateParameter.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -12796,11 +13036,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (NonTypeTemplateParameter)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -12820,7 +13060,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected NonTypeTemplateParameter(void* native, bool skipVTables = false) @@ -12833,7 +13073,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.NonTypeTemplateParameter.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -12842,7 +13082,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.NonTypeTemplateParameter.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -13000,11 +13240,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ClassTemplate)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -13024,7 +13264,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ClassTemplate(void* native, bool skipVTables = false) @@ -13037,7 +13277,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ClassTemplate.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -13046,7 +13286,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ClassTemplate.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -13210,11 +13450,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ClassTemplateSpecialization)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -13234,7 +13474,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ClassTemplateSpecialization(void* native, bool skipVTables = false) @@ -13247,7 +13487,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ClassTemplateSpecialization.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -13256,7 +13496,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ClassTemplateSpecialization.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -13412,11 +13652,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ClassTemplatePartialSpecialization)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -13436,7 +13676,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ClassTemplatePartialSpecialization(void* native, bool skipVTables = false) @@ -13449,7 +13689,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ClassTemplatePartialSpecialization.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -13458,7 +13698,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ClassTemplatePartialSpecialization.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -13546,11 +13786,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (FunctionTemplate)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -13570,7 +13810,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected FunctionTemplate(void* native, bool skipVTables = false) @@ -13583,7 +13823,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FunctionTemplate.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -13592,7 +13832,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FunctionTemplate.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -13690,7 +13930,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.FunctionTemplateSpecialization managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.FunctionTemplateSpecialization managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -13703,11 +13955,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (FunctionTemplateSpecialization)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -13727,7 +13979,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected FunctionTemplateSpecialization(void* native, bool skipVTables = false) @@ -13741,7 +13993,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FunctionTemplateSpecialization.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -13749,7 +14001,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FunctionTemplateSpecialization.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -13915,11 +14167,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (VarTemplate)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -13939,7 +14191,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected VarTemplate(void* native, bool skipVTables = false) @@ -13952,7 +14204,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VarTemplate.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -13961,7 +14213,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VarTemplate.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -14102,11 +14354,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (VarTemplateSpecialization)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -14126,7 +14378,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected VarTemplateSpecialization(void* native, bool skipVTables = false) @@ -14139,7 +14391,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VarTemplateSpecialization.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -14148,7 +14400,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VarTemplateSpecialization.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -14281,11 +14533,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (VarTemplatePartialSpecialization)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -14305,7 +14557,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected VarTemplatePartialSpecialization(void* native, bool skipVTables = false) @@ -14318,7 +14570,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VarTemplatePartialSpecialization.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -14327,7 +14579,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VarTemplatePartialSpecialization.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -14397,11 +14649,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (UnresolvedUsingTypename)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -14421,7 +14673,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected UnresolvedUsingTypename(void* native, bool skipVTables = false) @@ -14434,7 +14686,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnresolvedUsingTypename.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -14443,7 +14695,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnresolvedUsingTypename.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -14525,11 +14777,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Namespace)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -14549,7 +14801,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Namespace(void* native, bool skipVTables = false) @@ -14562,7 +14814,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Namespace.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -14571,7 +14823,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Namespace.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -14625,7 +14877,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.PreprocessedEntity managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.PreprocessedEntity managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -14638,11 +14902,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (PreprocessedEntity)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -14662,7 +14926,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected PreprocessedEntity(void* native, bool skipVTables = false) @@ -14676,7 +14940,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PreprocessedEntity.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -14684,7 +14948,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PreprocessedEntity.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.PreprocessedEntity.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.PreprocessedEntity.__Internal*) _0.__Instance); } @@ -14778,11 +15042,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (MacroDefinition)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -14802,7 +15066,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected MacroDefinition(void* native, bool skipVTables = false) @@ -14815,7 +15079,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MacroDefinition.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -14824,7 +15088,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MacroDefinition.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -14932,11 +15196,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (MacroExpansion)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -14956,7 +15220,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected MacroExpansion(void* native, bool skipVTables = false) @@ -14969,7 +15233,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MacroExpansion.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -14978,7 +15242,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MacroExpansion.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -15117,11 +15381,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TranslationUnit)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -15141,7 +15405,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TranslationUnit(void* native, bool skipVTables = false) @@ -15154,7 +15418,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TranslationUnit.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -15163,7 +15427,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TranslationUnit.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -15277,7 +15541,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.ASTContext managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.ASTContext managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -15290,11 +15566,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ASTContext)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -15314,7 +15590,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ASTContext(void* native, bool skipVTables = false) @@ -15328,7 +15604,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ASTContext.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -15336,7 +15612,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ASTContext.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -15566,7 +15842,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.Stmt managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.Stmt managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -15579,11 +15867,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Stmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -15603,7 +15891,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Stmt(void* native, bool skipVTables = false) @@ -15617,7 +15905,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Stmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -15625,7 +15913,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Stmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -15633,7 +15921,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Stmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.Stmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.Stmt.__Internal*) _0.__Instance); } @@ -15759,11 +16047,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DeclStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -15783,7 +16071,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DeclStmt(void* native, bool skipVTables = false) @@ -15796,7 +16084,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DeclStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -15805,7 +16093,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DeclStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -15913,11 +16201,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (NullStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -15937,7 +16225,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected NullStmt(void* native, bool skipVTables = false) @@ -15950,7 +16238,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.NullStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -15959,7 +16247,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.NullStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.NullStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.NullStmt.__Internal*) _0.__Instance); } @@ -16038,11 +16326,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CompoundStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -16062,7 +16350,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CompoundStmt(void* native, bool skipVTables = false) @@ -16075,7 +16363,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CompoundStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -16084,7 +16372,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CompoundStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -16249,11 +16537,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (SwitchCase)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -16273,7 +16561,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected SwitchCase(void* native, bool skipVTables = false) @@ -16286,7 +16574,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SwitchCase.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -16295,7 +16583,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SwitchCase.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -16304,7 +16592,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SwitchCase.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.SwitchCase.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.SwitchCase.__Internal*) _0.__Instance); } @@ -16388,11 +16676,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CaseStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -16412,7 +16700,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CaseStmt(void* native, bool skipVTables = false) @@ -16425,7 +16713,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CaseStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -16434,7 +16722,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CaseStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CaseStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CaseStmt.__Internal*) _0.__Instance); } @@ -16536,11 +16824,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DefaultStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -16560,7 +16848,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DefaultStmt(void* native, bool skipVTables = false) @@ -16573,7 +16861,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DefaultStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -16582,7 +16870,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DefaultStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.DefaultStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.DefaultStmt.__Internal*) _0.__Instance); } @@ -16630,11 +16918,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (LabelStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -16654,7 +16942,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected LabelStmt(void* native, bool skipVTables = false) @@ -16667,7 +16955,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.LabelStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -16676,7 +16964,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.LabelStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.LabelStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.LabelStmt.__Internal*) _0.__Instance); if (_0.__name_OwnsNativeMemory) this.Name = _0.Name; @@ -16763,11 +17051,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (AttributedStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -16787,7 +17075,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected AttributedStmt(void* native, bool skipVTables = false) @@ -16800,7 +17088,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AttributedStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -16809,7 +17097,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AttributedStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.AttributedStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.AttributedStmt.__Internal*) _0.__Instance); } @@ -16879,11 +17167,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (IfStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -16903,7 +17191,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected IfStmt(void* native, bool skipVTables = false) @@ -16916,7 +17204,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.IfStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -16925,7 +17213,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.IfStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.IfStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.IfStmt.__Internal*) _0.__Instance); } @@ -17125,11 +17413,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (SwitchStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -17149,7 +17437,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected SwitchStmt(void* native, bool skipVTables = false) @@ -17162,7 +17450,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SwitchStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -17171,7 +17459,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SwitchStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.SwitchStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.SwitchStmt.__Internal*) _0.__Instance); } @@ -17315,11 +17603,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (WhileStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -17339,7 +17627,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected WhileStmt(void* native, bool skipVTables = false) @@ -17352,7 +17640,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.WhileStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -17361,7 +17649,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.WhileStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.WhileStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.WhileStmt.__Internal*) _0.__Instance); } @@ -17465,11 +17753,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DoStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -17489,7 +17777,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DoStmt(void* native, bool skipVTables = false) @@ -17502,7 +17790,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DoStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -17511,7 +17799,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DoStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.DoStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.DoStmt.__Internal*) _0.__Instance); } @@ -17617,11 +17905,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ForStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -17641,7 +17929,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ForStmt(void* native, bool skipVTables = false) @@ -17654,7 +17942,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ForStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -17663,7 +17951,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ForStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ForStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ForStmt.__Internal*) _0.__Instance); } @@ -17805,11 +18093,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (GotoStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -17829,7 +18117,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected GotoStmt(void* native, bool skipVTables = false) @@ -17842,7 +18130,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.GotoStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -17851,7 +18139,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.GotoStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.GotoStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.GotoStmt.__Internal*) _0.__Instance); } @@ -17911,11 +18199,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (IndirectGotoStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -17935,7 +18223,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected IndirectGotoStmt(void* native, bool skipVTables = false) @@ -17948,7 +18236,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.IndirectGotoStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -17957,7 +18245,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.IndirectGotoStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.IndirectGotoStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.IndirectGotoStmt.__Internal*) _0.__Instance); } @@ -18029,11 +18317,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ContinueStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -18053,7 +18341,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ContinueStmt(void* native, bool skipVTables = false) @@ -18066,7 +18354,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ContinueStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -18075,7 +18363,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ContinueStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ContinueStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ContinueStmt.__Internal*) _0.__Instance); } @@ -18120,11 +18408,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (BreakStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -18144,7 +18432,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected BreakStmt(void* native, bool skipVTables = false) @@ -18157,7 +18445,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BreakStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -18166,7 +18454,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BreakStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.BreakStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.BreakStmt.__Internal*) _0.__Instance); } @@ -18212,11 +18500,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ReturnStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -18236,7 +18524,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ReturnStmt(void* native, bool skipVTables = false) @@ -18249,7 +18537,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ReturnStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -18258,7 +18546,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ReturnStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ReturnStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ReturnStmt.__Internal*) _0.__Instance); } @@ -18355,11 +18643,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (AsmStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -18379,7 +18667,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected AsmStmt(void* native, bool skipVTables = false) @@ -18392,7 +18680,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AsmStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -18401,7 +18689,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AsmStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -18410,7 +18698,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AsmStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -18648,7 +18936,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.GCCAsmStmt.AsmStringPiece managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.GCCAsmStmt.AsmStringPiece managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -18661,11 +18961,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (AsmStringPiece)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -18685,7 +18985,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected AsmStringPiece(void* native, bool skipVTables = false) @@ -18699,7 +18999,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.GCCAsmStmt.AsmStringPiece.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -18707,7 +19007,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.GCCAsmStmt.AsmStringPiece.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -18810,11 +19110,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (GCCAsmStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -18834,7 +19134,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected GCCAsmStmt(void* native, bool skipVTables = false) @@ -18847,7 +19147,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.GCCAsmStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -18856,7 +19156,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.GCCAsmStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -18934,11 +19234,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (MSAsmStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -18958,7 +19258,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected MSAsmStmt(void* native, bool skipVTables = false) @@ -18971,7 +19271,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MSAsmStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -18980,7 +19280,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MSAsmStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -19085,11 +19385,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (SEHExceptStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -19109,7 +19409,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected SEHExceptStmt(void* native, bool skipVTables = false) @@ -19122,7 +19422,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SEHExceptStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -19131,7 +19431,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SEHExceptStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.SEHExceptStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.SEHExceptStmt.__Internal*) _0.__Instance); } @@ -19205,11 +19505,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (SEHFinallyStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -19229,7 +19529,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected SEHFinallyStmt(void* native, bool skipVTables = false) @@ -19242,7 +19542,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SEHFinallyStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -19251,7 +19551,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SEHFinallyStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.SEHFinallyStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.SEHFinallyStmt.__Internal*) _0.__Instance); } @@ -19315,11 +19615,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (SEHTryStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -19339,7 +19639,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected SEHTryStmt(void* native, bool skipVTables = false) @@ -19352,7 +19652,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SEHTryStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -19361,7 +19661,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SEHTryStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.SEHTryStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.SEHTryStmt.__Internal*) _0.__Instance); } @@ -19475,11 +19775,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (SEHLeaveStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -19499,7 +19799,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected SEHLeaveStmt(void* native, bool skipVTables = false) @@ -19512,7 +19812,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SEHLeaveStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -19521,7 +19821,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SEHLeaveStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.SEHLeaveStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.SEHLeaveStmt.__Internal*) _0.__Instance); } @@ -19603,7 +19903,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.CapturedStmt.Capture managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.CapturedStmt.Capture managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -19616,11 +19928,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Capture)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -19640,7 +19952,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Capture(void* native, bool skipVTables = false) @@ -19654,7 +19966,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CapturedStmt.Capture.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -19662,7 +19974,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CapturedStmt.Capture.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CapturedStmt.Capture.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CapturedStmt.Capture.__Internal*) _0.__Instance); } @@ -19772,11 +20084,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CapturedStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -19796,7 +20108,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CapturedStmt(void* native, bool skipVTables = false) @@ -19809,7 +20121,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CapturedStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -19818,7 +20130,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CapturedStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -19927,11 +20239,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXCatchStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -19951,7 +20263,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXCatchStmt(void* native, bool skipVTables = false) @@ -19964,7 +20276,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXCatchStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -19973,7 +20285,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXCatchStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXCatchStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXCatchStmt.__Internal*) _0.__Instance); } @@ -20049,11 +20361,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXTryStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -20073,7 +20385,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXTryStmt(void* native, bool skipVTables = false) @@ -20086,7 +20398,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXTryStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -20095,7 +20407,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXTryStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXTryStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXTryStmt.__Internal*) _0.__Instance); } @@ -20179,11 +20491,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXForRangeStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -20203,7 +20515,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXForRangeStmt(void* native, bool skipVTables = false) @@ -20216,7 +20528,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXForRangeStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -20225,7 +20537,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXForRangeStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXForRangeStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXForRangeStmt.__Internal*) _0.__Instance); } @@ -20438,11 +20750,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (MSDependentExistsStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -20462,7 +20774,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected MSDependentExistsStmt(void* native, bool skipVTables = false) @@ -20475,7 +20787,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MSDependentExistsStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -20484,7 +20796,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MSDependentExistsStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.MSDependentExistsStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.MSDependentExistsStmt.__Internal*) _0.__Instance); } @@ -20603,7 +20915,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.CoroutineBodyStmt.CtorArgs managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.CoroutineBodyStmt.CtorArgs managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -20616,11 +20940,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CtorArgs)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -20640,7 +20964,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CtorArgs(void* native, bool skipVTables = false) @@ -20654,7 +20978,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoroutineBodyStmt.CtorArgs.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -20662,7 +20986,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoroutineBodyStmt.CtorArgs.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CoroutineBodyStmt.CtorArgs.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CoroutineBodyStmt.CtorArgs.__Internal*) _0.__Instance); } @@ -20694,11 +21018,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CoroutineBodyStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -20718,7 +21042,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CoroutineBodyStmt(void* native, bool skipVTables = false) @@ -20731,7 +21055,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoroutineBodyStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -20740,7 +21064,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoroutineBodyStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CoroutineBodyStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CoroutineBodyStmt.__Internal*) _0.__Instance); } @@ -20963,11 +21287,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CoreturnStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -20987,7 +21311,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CoreturnStmt(void* native, bool skipVTables = false) @@ -21000,7 +21324,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoreturnStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -21009,7 +21333,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoreturnStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CoreturnStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CoreturnStmt.__Internal*) _0.__Instance); } @@ -21413,7 +21737,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.Expr.Classification managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.Expr.Classification managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -21426,11 +21762,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Classification)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -21450,7 +21786,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Classification(void* native, bool skipVTables = false) @@ -21464,7 +21800,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Expr.Classification.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -21472,7 +21808,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Expr.Classification.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.Expr.Classification.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.Expr.Classification.__Internal*) _0.__Instance); } @@ -21608,11 +21944,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Expr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -21632,7 +21968,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Expr(void* native, bool skipVTables = false) @@ -21645,7 +21981,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Expr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -21654,7 +21990,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Expr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -21663,7 +21999,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Expr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.Expr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.Expr.__Internal*) _0.__Instance); } @@ -21903,11 +22239,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (FullExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -21927,7 +22263,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected FullExpr(void* native, bool skipVTables = false) @@ -21940,7 +22276,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FullExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -21949,7 +22285,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FullExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -21958,7 +22294,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FullExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.FullExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.FullExpr.__Internal*) _0.__Instance); } @@ -22023,11 +22359,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ConstantExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -22047,7 +22383,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ConstantExpr(void* native, bool skipVTables = false) @@ -22060,7 +22396,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ConstantExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -22069,7 +22405,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ConstantExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ConstantExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ConstantExpr.__Internal*) _0.__Instance); } } @@ -22117,11 +22453,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (OpaqueValueExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -22141,7 +22477,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected OpaqueValueExpr(void* native, bool skipVTables = false) @@ -22154,7 +22490,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.OpaqueValueExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -22163,7 +22499,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.OpaqueValueExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.OpaqueValueExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.OpaqueValueExpr.__Internal*) _0.__Instance); } @@ -22260,11 +22596,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DeclRefExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -22284,7 +22620,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DeclRefExpr(void* native, bool skipVTables = false) @@ -22297,7 +22633,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DeclRefExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -22306,7 +22642,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DeclRefExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.DeclRefExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.DeclRefExpr.__Internal*) _0.__Instance); } @@ -22510,11 +22846,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (IntegerLiteral)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -22534,7 +22870,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected IntegerLiteral(void* native, bool skipVTables = false) @@ -22547,7 +22883,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.IntegerLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -22556,7 +22892,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.IntegerLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.IntegerLiteral.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.IntegerLiteral.__Internal*) _0.__Instance); } @@ -22629,11 +22965,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (FixedPointLiteral)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -22653,7 +22989,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected FixedPointLiteral(void* native, bool skipVTables = false) @@ -22666,7 +23002,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FixedPointLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -22675,7 +23011,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FixedPointLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.FixedPointLiteral.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.FixedPointLiteral.__Internal*) _0.__Instance); } @@ -22758,11 +23094,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CharacterLiteral)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -22782,7 +23118,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CharacterLiteral(void* native, bool skipVTables = false) @@ -22795,7 +23131,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CharacterLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -22804,7 +23140,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CharacterLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CharacterLiteral.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CharacterLiteral.__Internal*) _0.__Instance); } @@ -22891,11 +23227,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (FloatingLiteral)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -22915,7 +23251,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected FloatingLiteral(void* native, bool skipVTables = false) @@ -22928,7 +23264,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FloatingLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -22937,7 +23273,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FloatingLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.FloatingLiteral.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.FloatingLiteral.__Internal*) _0.__Instance); } @@ -23022,11 +23358,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ImaginaryLiteral)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -23046,7 +23382,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ImaginaryLiteral(void* native, bool skipVTables = false) @@ -23059,7 +23395,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ImaginaryLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -23068,7 +23404,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ImaginaryLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ImaginaryLiteral.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ImaginaryLiteral.__Internal*) _0.__Instance); } @@ -23154,11 +23490,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (StringLiteral)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -23178,7 +23514,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected StringLiteral(void* native, bool skipVTables = false) @@ -23191,7 +23527,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.StringLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -23200,7 +23536,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.StringLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -23474,11 +23810,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (PredefinedExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -23498,7 +23834,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected PredefinedExpr(void* native, bool skipVTables = false) @@ -23511,7 +23847,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PredefinedExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -23520,7 +23856,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PredefinedExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.PredefinedExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.PredefinedExpr.__Internal*) _0.__Instance); } @@ -23594,11 +23930,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ParenExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -23618,7 +23954,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ParenExpr(void* native, bool skipVTables = false) @@ -23631,7 +23967,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ParenExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -23640,7 +23976,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ParenExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ParenExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ParenExpr.__Internal*) _0.__Instance); } @@ -23736,11 +24072,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (UnaryOperator)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -23760,7 +24096,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected UnaryOperator(void* native, bool skipVTables = false) @@ -23773,7 +24109,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnaryOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -23782,7 +24118,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnaryOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.UnaryOperator.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.UnaryOperator.__Internal*) _0.__Instance); } @@ -23975,11 +24311,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (OffsetOfExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -23999,7 +24335,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected OffsetOfExpr(void* native, bool skipVTables = false) @@ -24012,7 +24348,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.OffsetOfExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -24021,7 +24357,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.OffsetOfExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.OffsetOfExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.OffsetOfExpr.__Internal*) _0.__Instance); } @@ -24125,11 +24461,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (UnaryExprOrTypeTraitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -24149,7 +24485,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected UnaryExprOrTypeTraitExpr(void* native, bool skipVTables = false) @@ -24162,7 +24498,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnaryExprOrTypeTraitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -24171,7 +24507,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnaryExprOrTypeTraitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.UnaryExprOrTypeTraitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.UnaryExprOrTypeTraitExpr.__Internal*) _0.__Instance); } @@ -24317,11 +24653,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ArraySubscriptExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -24341,7 +24677,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ArraySubscriptExpr(void* native, bool skipVTables = false) @@ -24354,7 +24690,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ArraySubscriptExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -24363,7 +24699,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ArraySubscriptExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ArraySubscriptExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ArraySubscriptExpr.__Internal*) _0.__Instance); } @@ -24504,11 +24840,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CallExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -24528,7 +24864,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CallExpr(void* native, bool skipVTables = false) @@ -24541,7 +24877,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CallExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -24550,7 +24886,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CallExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -24559,7 +24895,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CallExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -24777,11 +25113,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (MemberExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -24801,7 +25137,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected MemberExpr(void* native, bool skipVTables = false) @@ -24814,7 +25150,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MemberExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -24823,7 +25159,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MemberExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.MemberExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.MemberExpr.__Internal*) _0.__Instance); } @@ -25041,11 +25377,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CompoundLiteralExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -25065,7 +25401,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CompoundLiteralExpr(void* native, bool skipVTables = false) @@ -25078,7 +25414,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CompoundLiteralExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -25087,7 +25423,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CompoundLiteralExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CompoundLiteralExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CompoundLiteralExpr.__Internal*) _0.__Instance); } @@ -25183,11 +25519,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CastExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -25207,7 +25543,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CastExpr(void* native, bool skipVTables = false) @@ -25220,7 +25556,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -25229,7 +25565,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -25238,7 +25574,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CastExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CastExpr.__Internal*) _0.__Instance); if (_0.__castKindName_OwnsNativeMemory) this.CastKindName = _0.CastKindName; @@ -25409,11 +25745,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ImplicitCastExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -25433,7 +25769,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ImplicitCastExpr(void* native, bool skipVTables = false) @@ -25446,7 +25782,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ImplicitCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -25455,7 +25791,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ImplicitCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ImplicitCastExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ImplicitCastExpr.__Internal*) _0.__Instance); } @@ -25524,11 +25860,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ExplicitCastExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -25548,7 +25884,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ExplicitCastExpr(void* native, bool skipVTables = false) @@ -25561,7 +25897,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ExplicitCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -25570,7 +25906,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ExplicitCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -25579,7 +25915,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ExplicitCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ExplicitCastExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ExplicitCastExpr.__Internal*) _0.__Instance); } @@ -25654,11 +25990,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CStyleCastExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -25678,7 +26014,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CStyleCastExpr(void* native, bool skipVTables = false) @@ -25691,7 +26027,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CStyleCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -25700,7 +26036,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CStyleCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CStyleCastExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CStyleCastExpr.__Internal*) _0.__Instance); } @@ -25796,11 +26132,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (BinaryOperator)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -25820,7 +26156,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected BinaryOperator(void* native, bool skipVTables = false) @@ -25833,7 +26169,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BinaryOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -25842,7 +26178,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BinaryOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -25851,7 +26187,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BinaryOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -26193,11 +26529,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CompoundAssignOperator)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -26217,7 +26553,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CompoundAssignOperator(void* native, bool skipVTables = false) @@ -26230,7 +26566,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CompoundAssignOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -26239,7 +26575,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CompoundAssignOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -26340,11 +26676,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (AbstractConditionalOperator)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -26364,7 +26700,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected AbstractConditionalOperator(void* native, bool skipVTables = false) @@ -26377,7 +26713,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AbstractConditionalOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -26386,7 +26722,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AbstractConditionalOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -26395,7 +26731,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AbstractConditionalOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.AbstractConditionalOperator.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.AbstractConditionalOperator.__Internal*) _0.__Instance); } @@ -26520,11 +26856,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ConditionalOperator)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -26544,7 +26880,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ConditionalOperator(void* native, bool skipVTables = false) @@ -26557,7 +26893,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ConditionalOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -26566,7 +26902,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ConditionalOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ConditionalOperator.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ConditionalOperator.__Internal*) _0.__Instance); } @@ -26646,11 +26982,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (BinaryConditionalOperator)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -26670,7 +27006,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected BinaryConditionalOperator(void* native, bool skipVTables = false) @@ -26683,7 +27019,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BinaryConditionalOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -26692,7 +27028,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BinaryConditionalOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.BinaryConditionalOperator.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.BinaryConditionalOperator.__Internal*) _0.__Instance); } @@ -26767,11 +27103,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (AddrLabelExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -26791,7 +27127,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected AddrLabelExpr(void* native, bool skipVTables = false) @@ -26804,7 +27140,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AddrLabelExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -26813,7 +27149,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AddrLabelExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.AddrLabelExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.AddrLabelExpr.__Internal*) _0.__Instance); } @@ -26887,11 +27223,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (StmtExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -26911,7 +27247,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected StmtExpr(void* native, bool skipVTables = false) @@ -26924,7 +27260,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.StmtExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -26933,7 +27269,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.StmtExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.StmtExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.StmtExpr.__Internal*) _0.__Instance); } @@ -27021,11 +27357,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ShuffleVectorExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -27045,7 +27381,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ShuffleVectorExpr(void* native, bool skipVTables = false) @@ -27058,7 +27394,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ShuffleVectorExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -27067,7 +27403,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ShuffleVectorExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ShuffleVectorExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ShuffleVectorExpr.__Internal*) _0.__Instance); } @@ -27154,11 +27490,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ConvertVectorExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -27178,7 +27514,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ConvertVectorExpr(void* native, bool skipVTables = false) @@ -27191,7 +27527,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ConvertVectorExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -27200,7 +27536,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ConvertVectorExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ConvertVectorExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ConvertVectorExpr.__Internal*) _0.__Instance); } @@ -27293,11 +27629,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ChooseExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -27317,7 +27653,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ChooseExpr(void* native, bool skipVTables = false) @@ -27330,7 +27666,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ChooseExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -27339,7 +27675,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ChooseExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ChooseExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ChooseExpr.__Internal*) _0.__Instance); } @@ -27493,11 +27829,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (GNUNullExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -27517,7 +27853,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected GNUNullExpr(void* native, bool skipVTables = false) @@ -27530,7 +27866,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.GNUNullExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -27539,7 +27875,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.GNUNullExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.GNUNullExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.GNUNullExpr.__Internal*) _0.__Instance); } @@ -27601,11 +27937,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (VAArgExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -27625,7 +27961,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected VAArgExpr(void* native, bool skipVTables = false) @@ -27638,7 +27974,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VAArgExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -27647,7 +27983,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VAArgExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.VAArgExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.VAArgExpr.__Internal*) _0.__Instance); } @@ -27757,11 +28093,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (InitListExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -27781,7 +28117,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected InitListExpr(void* native, bool skipVTables = false) @@ -27794,7 +28130,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.InitListExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -27803,7 +28139,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.InitListExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.InitListExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.InitListExpr.__Internal*) _0.__Instance); } @@ -28030,7 +28366,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.DesignatedInitExpr.Designator managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.DesignatedInitExpr.Designator managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -28043,11 +28391,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Designator)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -28067,7 +28415,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Designator(void* native, bool skipVTables = false) @@ -28081,7 +28429,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DesignatedInitExpr.Designator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -28089,7 +28437,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DesignatedInitExpr.Designator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.DesignatedInitExpr.Designator.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.DesignatedInitExpr.Designator.__Internal*) _0.__Instance); } @@ -28272,7 +28620,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.DesignatedInitExpr.FieldDesignator managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.DesignatedInitExpr.FieldDesignator managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -28285,11 +28645,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (FieldDesignator)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -28309,7 +28669,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected FieldDesignator(void* native, bool skipVTables = false) @@ -28323,7 +28683,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DesignatedInitExpr.FieldDesignator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -28331,7 +28691,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DesignatedInitExpr.FieldDesignator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.DesignatedInitExpr.FieldDesignator.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.DesignatedInitExpr.FieldDesignator.__Internal*) _0.__Instance); } @@ -28368,7 +28728,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.DesignatedInitExpr.ArrayOrRangeDesignator managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.DesignatedInitExpr.ArrayOrRangeDesignator managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -28381,11 +28753,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ArrayOrRangeDesignator)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -28405,7 +28777,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ArrayOrRangeDesignator(void* native, bool skipVTables = false) @@ -28419,7 +28791,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DesignatedInitExpr.ArrayOrRangeDesignator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -28427,7 +28799,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DesignatedInitExpr.ArrayOrRangeDesignator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.DesignatedInitExpr.ArrayOrRangeDesignator.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.DesignatedInitExpr.ArrayOrRangeDesignator.__Internal*) _0.__Instance); } @@ -28459,11 +28831,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DesignatedInitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -28483,7 +28855,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DesignatedInitExpr(void* native, bool skipVTables = false) @@ -28496,7 +28868,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DesignatedInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -28505,7 +28877,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DesignatedInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.DesignatedInitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.DesignatedInitExpr.__Internal*) _0.__Instance); } @@ -28631,11 +29003,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (NoInitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -28655,7 +29027,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected NoInitExpr(void* native, bool skipVTables = false) @@ -28668,7 +29040,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.NoInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -28677,7 +29049,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.NoInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.NoInitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.NoInitExpr.__Internal*) _0.__Instance); } } @@ -28724,11 +29096,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DesignatedInitUpdateExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -28748,7 +29120,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DesignatedInitUpdateExpr(void* native, bool skipVTables = false) @@ -28761,7 +29133,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DesignatedInitUpdateExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -28770,7 +29142,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DesignatedInitUpdateExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.DesignatedInitUpdateExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.DesignatedInitUpdateExpr.__Internal*) _0.__Instance); } @@ -28845,11 +29217,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ArrayInitLoopExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -28869,7 +29241,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ArrayInitLoopExpr(void* native, bool skipVTables = false) @@ -28882,7 +29254,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ArrayInitLoopExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -28891,7 +29263,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ArrayInitLoopExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ArrayInitLoopExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ArrayInitLoopExpr.__Internal*) _0.__Instance); } @@ -28964,11 +29336,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ArrayInitIndexExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -28988,7 +29360,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ArrayInitIndexExpr(void* native, bool skipVTables = false) @@ -29001,7 +29373,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ArrayInitIndexExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -29010,7 +29382,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ArrayInitIndexExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ArrayInitIndexExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ArrayInitIndexExpr.__Internal*) _0.__Instance); } } @@ -29055,11 +29427,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ImplicitValueInitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -29079,7 +29451,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ImplicitValueInitExpr(void* native, bool skipVTables = false) @@ -29092,7 +29464,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ImplicitValueInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -29101,7 +29473,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ImplicitValueInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ImplicitValueInitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ImplicitValueInitExpr.__Internal*) _0.__Instance); } } @@ -29149,11 +29521,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ParenListExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -29173,7 +29545,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ParenListExpr(void* native, bool skipVTables = false) @@ -29186,7 +29558,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ParenListExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -29195,7 +29567,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ParenListExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ParenListExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ParenListExpr.__Internal*) _0.__Instance); } @@ -29287,11 +29659,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (GenericSelectionExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -29311,7 +29683,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected GenericSelectionExpr(void* native, bool skipVTables = false) @@ -29324,7 +29696,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.GenericSelectionExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -29333,7 +29705,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.GenericSelectionExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.GenericSelectionExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.GenericSelectionExpr.__Internal*) _0.__Instance); } @@ -29489,11 +29861,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ExtVectorElementExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -29513,7 +29885,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ExtVectorElementExpr(void* native, bool skipVTables = false) @@ -29526,7 +29898,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ExtVectorElementExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -29535,7 +29907,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ExtVectorElementExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ExtVectorElementExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ExtVectorElementExpr.__Internal*) _0.__Instance); } @@ -29648,11 +30020,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (BlockExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -29672,7 +30044,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected BlockExpr(void* native, bool skipVTables = false) @@ -29685,7 +30057,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BlockExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -29694,7 +30066,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BlockExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.BlockExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.BlockExpr.__Internal*) _0.__Instance); } @@ -29769,11 +30141,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (AsTypeExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -29793,7 +30165,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected AsTypeExpr(void* native, bool skipVTables = false) @@ -29806,7 +30178,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AsTypeExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -29815,7 +30187,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AsTypeExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.AsTypeExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.AsTypeExpr.__Internal*) _0.__Instance); } @@ -29904,11 +30276,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (PseudoObjectExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -29928,7 +30300,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected PseudoObjectExpr(void* native, bool skipVTables = false) @@ -29941,7 +30313,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PseudoObjectExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -29950,7 +30322,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PseudoObjectExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.PseudoObjectExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.PseudoObjectExpr.__Internal*) _0.__Instance); } @@ -30114,11 +30486,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (AtomicExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -30138,7 +30510,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected AtomicExpr(void* native, bool skipVTables = false) @@ -30151,7 +30523,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AtomicExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -30160,7 +30532,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AtomicExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.AtomicExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.AtomicExpr.__Internal*) _0.__Instance); } @@ -30409,11 +30781,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TypoExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -30433,7 +30805,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TypoExpr(void* native, bool skipVTables = false) @@ -30446,7 +30818,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypoExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -30455,7 +30827,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypoExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.TypoExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.TypoExpr.__Internal*) _0.__Instance); } } @@ -30516,11 +30888,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXOperatorCallExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -30540,7 +30912,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXOperatorCallExpr(void* native, bool skipVTables = false) @@ -30553,7 +30925,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXOperatorCallExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -30562,7 +30934,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXOperatorCallExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -30691,11 +31063,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXMemberCallExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -30715,7 +31087,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXMemberCallExpr(void* native, bool skipVTables = false) @@ -30728,7 +31100,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXMemberCallExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -30737,7 +31109,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXMemberCallExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -30841,11 +31213,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CUDAKernelCallExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -30865,7 +31237,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CUDAKernelCallExpr(void* native, bool skipVTables = false) @@ -30878,7 +31250,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CUDAKernelCallExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -30887,7 +31259,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CUDAKernelCallExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -30980,11 +31352,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXNamedCastExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -31004,7 +31376,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXNamedCastExpr(void* native, bool skipVTables = false) @@ -31017,7 +31389,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXNamedCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -31026,7 +31398,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXNamedCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -31035,7 +31407,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXNamedCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXNamedCastExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXNamedCastExpr.__Internal*) _0.__Instance); if (_0.__castName_OwnsNativeMemory) this.CastName = _0.CastName; @@ -31165,11 +31537,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXStaticCastExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -31189,7 +31561,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXStaticCastExpr(void* native, bool skipVTables = false) @@ -31202,7 +31574,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXStaticCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -31211,7 +31583,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXStaticCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXStaticCastExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXStaticCastExpr.__Internal*) _0.__Instance); } } @@ -31269,11 +31641,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXDynamicCastExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -31293,7 +31665,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXDynamicCastExpr(void* native, bool skipVTables = false) @@ -31306,7 +31678,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXDynamicCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -31315,7 +31687,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXDynamicCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXDynamicCastExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXDynamicCastExpr.__Internal*) _0.__Instance); } @@ -31385,11 +31757,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXReinterpretCastExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -31409,7 +31781,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXReinterpretCastExpr(void* native, bool skipVTables = false) @@ -31422,7 +31794,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXReinterpretCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -31431,7 +31803,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXReinterpretCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXReinterpretCastExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXReinterpretCastExpr.__Internal*) _0.__Instance); } } @@ -31488,11 +31860,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXConstCastExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -31512,7 +31884,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXConstCastExpr(void* native, bool skipVTables = false) @@ -31525,7 +31897,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXConstCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -31534,7 +31906,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXConstCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXConstCastExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXConstCastExpr.__Internal*) _0.__Instance); } } @@ -31604,11 +31976,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (UserDefinedLiteral)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -31628,7 +32000,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected UserDefinedLiteral(void* native, bool skipVTables = false) @@ -31641,7 +32013,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UserDefinedLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -31650,7 +32022,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UserDefinedLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -31755,11 +32127,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXBoolLiteralExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -31779,7 +32151,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXBoolLiteralExpr(void* native, bool skipVTables = false) @@ -31792,7 +32164,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXBoolLiteralExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -31801,7 +32173,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXBoolLiteralExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXBoolLiteralExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXBoolLiteralExpr.__Internal*) _0.__Instance); } @@ -31873,11 +32245,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXNullPtrLiteralExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -31897,7 +32269,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXNullPtrLiteralExpr(void* native, bool skipVTables = false) @@ -31910,7 +32282,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXNullPtrLiteralExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -31919,7 +32291,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXNullPtrLiteralExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXNullPtrLiteralExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXNullPtrLiteralExpr.__Internal*) _0.__Instance); } @@ -31978,11 +32350,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXStdInitializerListExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -32002,7 +32374,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXStdInitializerListExpr(void* native, bool skipVTables = false) @@ -32015,7 +32387,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXStdInitializerListExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -32024,7 +32396,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXStdInitializerListExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXStdInitializerListExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXStdInitializerListExpr.__Internal*) _0.__Instance); } @@ -32086,11 +32458,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXTypeidExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -32110,7 +32482,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXTypeidExpr(void* native, bool skipVTables = false) @@ -32123,7 +32495,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXTypeidExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -32132,7 +32504,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXTypeidExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXTypeidExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXTypeidExpr.__Internal*) _0.__Instance); } @@ -32221,11 +32593,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (MSPropertyRefExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -32245,7 +32617,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected MSPropertyRefExpr(void* native, bool skipVTables = false) @@ -32258,7 +32630,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MSPropertyRefExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -32267,7 +32639,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MSPropertyRefExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.MSPropertyRefExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.MSPropertyRefExpr.__Internal*) _0.__Instance); } @@ -32368,11 +32740,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (MSPropertySubscriptExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -32392,7 +32764,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected MSPropertySubscriptExpr(void* native, bool skipVTables = false) @@ -32405,7 +32777,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MSPropertySubscriptExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -32414,7 +32786,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MSPropertySubscriptExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.MSPropertySubscriptExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.MSPropertySubscriptExpr.__Internal*) _0.__Instance); } @@ -32506,11 +32878,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXUuidofExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -32530,7 +32902,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXUuidofExpr(void* native, bool skipVTables = false) @@ -32543,7 +32915,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXUuidofExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -32552,7 +32924,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXUuidofExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -32658,11 +33030,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXThisExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -32682,7 +33054,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXThisExpr(void* native, bool skipVTables = false) @@ -32695,7 +33067,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXThisExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -32704,7 +33076,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXThisExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXThisExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXThisExpr.__Internal*) _0.__Instance); } @@ -32778,11 +33150,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXThrowExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -32802,7 +33174,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXThrowExpr(void* native, bool skipVTables = false) @@ -32815,7 +33187,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXThrowExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -32824,7 +33196,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXThrowExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXThrowExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXThrowExpr.__Internal*) _0.__Instance); } @@ -32911,11 +33283,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXDefaultArgExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -32935,7 +33307,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXDefaultArgExpr(void* native, bool skipVTables = false) @@ -32948,7 +33320,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXDefaultArgExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -32957,7 +33329,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXDefaultArgExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXDefaultArgExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXDefaultArgExpr.__Internal*) _0.__Instance); } @@ -33031,11 +33403,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXDefaultInitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -33055,7 +33427,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXDefaultInitExpr(void* native, bool skipVTables = false) @@ -33068,7 +33440,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXDefaultInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -33077,7 +33449,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXDefaultInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXDefaultInitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXDefaultInitExpr.__Internal*) _0.__Instance); } @@ -33151,11 +33523,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXBindTemporaryExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -33175,7 +33547,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXBindTemporaryExpr(void* native, bool skipVTables = false) @@ -33188,7 +33560,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXBindTemporaryExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -33197,7 +33569,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXBindTemporaryExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXBindTemporaryExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXBindTemporaryExpr.__Internal*) _0.__Instance); } @@ -33291,11 +33663,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXConstructExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -33315,7 +33687,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXConstructExpr(void* native, bool skipVTables = false) @@ -33328,7 +33700,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXConstructExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -33337,7 +33709,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXConstructExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -33346,7 +33718,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXConstructExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -33553,11 +33925,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXInheritedCtorInitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -33577,7 +33949,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXInheritedCtorInitExpr(void* native, bool skipVTables = false) @@ -33590,7 +33962,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXInheritedCtorInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -33599,7 +33971,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXInheritedCtorInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXInheritedCtorInitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXInheritedCtorInitExpr.__Internal*) _0.__Instance); } @@ -33694,11 +34066,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXFunctionalCastExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -33718,7 +34090,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXFunctionalCastExpr(void* native, bool skipVTables = false) @@ -33731,7 +34103,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXFunctionalCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -33740,7 +34112,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXFunctionalCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXFunctionalCastExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXFunctionalCastExpr.__Internal*) _0.__Instance); } @@ -33836,11 +34208,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXTemporaryObjectExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -33860,7 +34232,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXTemporaryObjectExpr(void* native, bool skipVTables = false) @@ -33873,7 +34245,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXTemporaryObjectExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -33882,7 +34254,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXTemporaryObjectExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -33970,11 +34342,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (LambdaExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -33994,7 +34366,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected LambdaExpr(void* native, bool skipVTables = false) @@ -34007,7 +34379,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.LambdaExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -34016,7 +34388,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.LambdaExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -34231,11 +34603,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXScalarValueInitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -34255,7 +34627,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXScalarValueInitExpr(void* native, bool skipVTables = false) @@ -34268,7 +34640,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXScalarValueInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -34277,7 +34649,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXScalarValueInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXScalarValueInitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXScalarValueInitExpr.__Internal*) _0.__Instance); } @@ -34372,11 +34744,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXNewExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -34396,7 +34768,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXNewExpr(void* native, bool skipVTables = false) @@ -34409,7 +34781,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXNewExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -34418,7 +34790,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXNewExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -34710,11 +35082,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXDeleteExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -34734,7 +35106,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXDeleteExpr(void* native, bool skipVTables = false) @@ -34747,7 +35119,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXDeleteExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -34756,7 +35128,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXDeleteExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXDeleteExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXDeleteExpr.__Internal*) _0.__Instance); } @@ -34891,11 +35263,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXPseudoDestructorExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -34915,7 +35287,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXPseudoDestructorExpr(void* native, bool skipVTables = false) @@ -34928,7 +35300,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXPseudoDestructorExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -34937,7 +35309,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXPseudoDestructorExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXPseudoDestructorExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXPseudoDestructorExpr.__Internal*) _0.__Instance); } @@ -35091,11 +35463,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TypeTraitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -35115,7 +35487,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TypeTraitExpr(void* native, bool skipVTables = false) @@ -35128,7 +35500,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypeTraitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -35137,7 +35509,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypeTraitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.TypeTraitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.TypeTraitExpr.__Internal*) _0.__Instance); } @@ -35211,11 +35583,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ArrayTypeTraitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -35235,7 +35607,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ArrayTypeTraitExpr(void* native, bool skipVTables = false) @@ -35248,7 +35620,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ArrayTypeTraitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -35257,7 +35629,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ArrayTypeTraitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ArrayTypeTraitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ArrayTypeTraitExpr.__Internal*) _0.__Instance); } @@ -35346,11 +35718,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ExpressionTraitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -35370,7 +35742,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ExpressionTraitExpr(void* native, bool skipVTables = false) @@ -35383,7 +35755,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ExpressionTraitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -35392,7 +35764,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ExpressionTraitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ExpressionTraitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ExpressionTraitExpr.__Internal*) _0.__Instance); } @@ -35480,7 +35852,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.OverloadExpr.FindResult managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.OverloadExpr.FindResult managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -35493,11 +35877,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (FindResult)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -35517,7 +35901,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected FindResult(void* native, bool skipVTables = false) @@ -35531,7 +35915,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.OverloadExpr.FindResult.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -35539,7 +35923,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.OverloadExpr.FindResult.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.OverloadExpr.FindResult.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.OverloadExpr.FindResult.__Internal*) _0.__Instance); } @@ -35571,11 +35955,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (OverloadExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -35595,7 +35979,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected OverloadExpr(void* native, bool skipVTables = false) @@ -35608,7 +35992,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.OverloadExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -35617,7 +36001,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.OverloadExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -35626,7 +36010,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.OverloadExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.OverloadExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.OverloadExpr.__Internal*) _0.__Instance); } @@ -35790,11 +36174,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (UnresolvedLookupExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -35814,7 +36198,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected UnresolvedLookupExpr(void* native, bool skipVTables = false) @@ -35827,7 +36211,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnresolvedLookupExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -35836,7 +36220,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnresolvedLookupExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.UnresolvedLookupExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.UnresolvedLookupExpr.__Internal*) _0.__Instance); } @@ -35914,11 +36298,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DependentScopeDeclRefExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -35938,7 +36322,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DependentScopeDeclRefExpr(void* native, bool skipVTables = false) @@ -35951,7 +36335,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DependentScopeDeclRefExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -35960,7 +36344,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DependentScopeDeclRefExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.DependentScopeDeclRefExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.DependentScopeDeclRefExpr.__Internal*) _0.__Instance); } @@ -36099,11 +36483,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ExprWithCleanups)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -36123,7 +36507,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ExprWithCleanups(void* native, bool skipVTables = false) @@ -36136,7 +36520,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ExprWithCleanups.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -36145,7 +36529,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ExprWithCleanups.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ExprWithCleanups.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ExprWithCleanups.__Internal*) _0.__Instance); } @@ -36237,11 +36621,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXUnresolvedConstructExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -36261,7 +36645,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXUnresolvedConstructExpr(void* native, bool skipVTables = false) @@ -36274,7 +36658,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXUnresolvedConstructExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -36283,7 +36667,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXUnresolvedConstructExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -36456,11 +36840,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXDependentScopeMemberExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -36480,7 +36864,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXDependentScopeMemberExpr(void* native, bool skipVTables = false) @@ -36493,7 +36877,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXDependentScopeMemberExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -36502,7 +36886,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXDependentScopeMemberExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXDependentScopeMemberExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXDependentScopeMemberExpr.__Internal*) _0.__Instance); } @@ -36735,11 +37119,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (UnresolvedMemberExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -36759,7 +37143,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected UnresolvedMemberExpr(void* native, bool skipVTables = false) @@ -36772,7 +37156,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnresolvedMemberExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -36781,7 +37165,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnresolvedMemberExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.UnresolvedMemberExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.UnresolvedMemberExpr.__Internal*) _0.__Instance); } @@ -36922,11 +37306,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXNoexceptExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -36946,7 +37330,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXNoexceptExpr(void* native, bool skipVTables = false) @@ -36959,7 +37343,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXNoexceptExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -36968,7 +37352,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXNoexceptExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXNoexceptExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXNoexceptExpr.__Internal*) _0.__Instance); } @@ -37042,11 +37426,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (PackExpansionExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -37066,7 +37450,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected PackExpansionExpr(void* native, bool skipVTables = false) @@ -37079,7 +37463,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PackExpansionExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -37088,7 +37472,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PackExpansionExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.PackExpansionExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.PackExpansionExpr.__Internal*) _0.__Instance); } @@ -37166,11 +37550,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (SizeOfPackExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -37190,7 +37574,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected SizeOfPackExpr(void* native, bool skipVTables = false) @@ -37203,7 +37587,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SizeOfPackExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -37212,7 +37596,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SizeOfPackExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.SizeOfPackExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.SizeOfPackExpr.__Internal*) _0.__Instance); } @@ -37338,11 +37722,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (SubstNonTypeTemplateParmExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -37362,7 +37746,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected SubstNonTypeTemplateParmExpr(void* native, bool skipVTables = false) @@ -37375,7 +37759,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SubstNonTypeTemplateParmExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -37384,7 +37768,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SubstNonTypeTemplateParmExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.SubstNonTypeTemplateParmExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.SubstNonTypeTemplateParmExpr.__Internal*) _0.__Instance); } @@ -37458,11 +37842,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (SubstNonTypeTemplateParmPackExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -37482,7 +37866,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected SubstNonTypeTemplateParmPackExpr(void* native, bool skipVTables = false) @@ -37495,7 +37879,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SubstNonTypeTemplateParmPackExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -37504,7 +37888,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SubstNonTypeTemplateParmPackExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.SubstNonTypeTemplateParmPackExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.SubstNonTypeTemplateParmPackExpr.__Internal*) _0.__Instance); } @@ -37579,11 +37963,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (FunctionParmPackExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -37603,7 +37987,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected FunctionParmPackExpr(void* native, bool skipVTables = false) @@ -37616,7 +38000,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FunctionParmPackExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -37625,7 +38009,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FunctionParmPackExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.FunctionParmPackExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.FunctionParmPackExpr.__Internal*) _0.__Instance); } @@ -37705,7 +38089,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.MaterializeTemporaryExpr.ExtraState managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.MaterializeTemporaryExpr.ExtraState managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -37718,11 +38114,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ExtraState)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -37742,7 +38138,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ExtraState(void* native, bool skipVTables = false) @@ -37756,7 +38152,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MaterializeTemporaryExpr.ExtraState.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -37764,7 +38160,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MaterializeTemporaryExpr.ExtraState.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.MaterializeTemporaryExpr.ExtraState.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.MaterializeTemporaryExpr.ExtraState.__Internal*) _0.__Instance); } @@ -37796,11 +38192,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (MaterializeTemporaryExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -37820,7 +38216,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected MaterializeTemporaryExpr(void* native, bool skipVTables = false) @@ -37833,7 +38229,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MaterializeTemporaryExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -37842,7 +38238,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MaterializeTemporaryExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.MaterializeTemporaryExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.MaterializeTemporaryExpr.__Internal*) _0.__Instance); } @@ -37949,11 +38345,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXFoldExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -37973,7 +38369,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXFoldExpr(void* native, bool skipVTables = false) @@ -37986,7 +38382,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXFoldExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -37995,7 +38391,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXFoldExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXFoldExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXFoldExpr.__Internal*) _0.__Instance); } @@ -38166,11 +38562,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CoroutineSuspendExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -38190,7 +38586,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CoroutineSuspendExpr(void* native, bool skipVTables = false) @@ -38203,7 +38599,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoroutineSuspendExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -38212,7 +38608,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoroutineSuspendExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -38221,7 +38617,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoroutineSuspendExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CoroutineSuspendExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CoroutineSuspendExpr.__Internal*) _0.__Instance); } @@ -38362,11 +38758,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CoawaitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -38386,7 +38782,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CoawaitExpr(void* native, bool skipVTables = false) @@ -38399,7 +38795,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoawaitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -38408,7 +38804,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoawaitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CoawaitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CoawaitExpr.__Internal*) _0.__Instance); } @@ -38483,11 +38879,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DependentCoawaitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -38507,7 +38903,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DependentCoawaitExpr(void* native, bool skipVTables = false) @@ -38520,7 +38916,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DependentCoawaitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -38529,7 +38925,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DependentCoawaitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.DependentCoawaitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.DependentCoawaitExpr.__Internal*) _0.__Instance); } @@ -38622,11 +39018,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CoyieldExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -38646,7 +39042,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CoyieldExpr(void* native, bool skipVTables = false) @@ -38659,7 +39055,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoyieldExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -38668,7 +39064,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoyieldExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CoyieldExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CoyieldExpr.__Internal*) _0.__Instance); } @@ -38768,7 +39164,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.ParserTargetInfo managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.ParserTargetInfo managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -38781,11 +39189,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ParserTargetInfo)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -38805,7 +39213,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ParserTargetInfo(void* native, bool skipVTables = false) @@ -38819,7 +39227,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.ParserTargetInfo.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -38827,7 +39235,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.ParserTargetInfo.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -39428,7 +39836,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.Parser managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.Parser managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -39441,11 +39861,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Parser)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -39465,7 +39885,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Parser(void* native, bool skipVTables = false) @@ -39478,7 +39898,7 @@ namespace CppSharp public unsafe partial class CppParserOptions : IDisposable { - [StructLayout(LayoutKind.Sequential, Size = 136)] + [StructLayout(LayoutKind.Sequential, Size = 148)] public partial struct __Internal { internal global::Std.Vector.__Internalc__N_std_N___1_S_vector____N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C___N_std_N___1_S_allocator__S0_ Arguments; @@ -39489,6 +39909,7 @@ namespace CppSharp internal global::Std.Vector.__Internalc__N_std_N___1_S_vector____N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C___N_std_N___1_S_allocator__S0_ Defines; internal global::Std.Vector.__Internalc__N_std_N___1_S_vector____N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C___N_std_N___1_S_allocator__S0_ Undefines; internal global::Std.Vector.__Internalc__N_std_N___1_S_vector____N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C___N_std_N___1_S_allocator__S0_ SupportedStdTypes; + internal global::Std.Vector.__Internalc__N_std_N___1_S_vector____N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C___N_std_N___1_S_allocator__S0_ SupportedFunctionTemplates; internal __IntPtr ASTContext; internal int toolSetToUse; internal global::Std.BasicString.__Internalc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C targetTriple; @@ -39583,6 +40004,15 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser16CppParserOptions22clearSupportedStdTypesEv", CallingConvention = __CallingConvention.Cdecl)] internal static extern void ClearSupportedStdTypes(__IntPtr __instance); + [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser16CppParserOptions29getSupportedFunctionTemplatesEj", CallingConvention = __CallingConvention.Cdecl)] + internal static extern __IntPtr GetSupportedFunctionTemplates(__IntPtr __instance, uint i); + + [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser16CppParserOptions29addSupportedFunctionTemplatesEPKc", CallingConvention = __CallingConvention.Cdecl)] + internal static extern void AddSupportedFunctionTemplates(__IntPtr __instance, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(CppSharp.Runtime.UTF8Marshaller))] string s); + + [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser16CppParserOptions31clearSupportedFunctionTemplatesEv", CallingConvention = __CallingConvention.Cdecl)] + internal static extern void ClearSupportedFunctionTemplates(__IntPtr __instance); + [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser16CppParserOptions15getClangVersionEv", CallingConvention = __CallingConvention.Cdecl)] internal static extern void GetClangVersion(__IntPtr @return, __IntPtr __instance); @@ -39609,11 +40039,26 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser16CppParserOptions25getSupportedStdTypesCountEv", CallingConvention = __CallingConvention.Cdecl)] internal static extern uint GetSupportedStdTypesCount(__IntPtr __instance); + + [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser16CppParserOptions34getSupportedFunctionTemplatesCountEv", CallingConvention = __CallingConvention.Cdecl)] + internal static extern uint GetSupportedFunctionTemplatesCount(__IntPtr __instance); } public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.CppParserOptions managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.CppParserOptions managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -39626,11 +40071,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CppParserOptions)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -39650,7 +40095,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CppParserOptions(void* native, bool skipVTables = false) @@ -39664,7 +40109,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.CppParserOptions.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -39672,7 +40117,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.CppParserOptions.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -39827,6 +40272,22 @@ namespace CppSharp __Internal.ClearSupportedStdTypes(__Instance); } + public string GetSupportedFunctionTemplates(uint i) + { + var __ret = __Internal.GetSupportedFunctionTemplates(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + } + + public void AddSupportedFunctionTemplates(string s) + { + __Internal.AddSupportedFunctionTemplates(__Instance, s); + } + + public void ClearSupportedFunctionTemplates() + { + __Internal.ClearSupportedFunctionTemplates(__Instance); + } + public global::CppSharp.Parser.AST.ASTContext ASTContext { get @@ -40056,6 +40517,15 @@ namespace CppSharp return __ret; } } + + public uint SupportedFunctionTemplatesCount + { + get + { + var __ret = __Internal.GetSupportedFunctionTemplatesCount(__Instance); + return __ret; + } + } } public unsafe partial class CppLinkerOptions : IDisposable @@ -40115,7 +40585,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.CppLinkerOptions managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.CppLinkerOptions managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -40128,11 +40610,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CppLinkerOptions)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -40152,7 +40634,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CppLinkerOptions(void* native, bool skipVTables = false) @@ -40166,7 +40648,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.CppLinkerOptions.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -40174,7 +40656,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.CppLinkerOptions.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -40300,7 +40782,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.ParserDiagnostic managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.ParserDiagnostic managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -40313,11 +40807,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ParserDiagnostic)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -40337,7 +40831,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ParserDiagnostic(void* native, bool skipVTables = false) @@ -40351,7 +40845,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.ParserDiagnostic.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -40359,7 +40853,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.ParserDiagnostic.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -40500,7 +40994,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.ParserResult managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.ParserResult managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -40513,11 +41019,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ParserResult)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -40537,7 +41043,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ParserResult(void* native, bool skipVTables = false) @@ -40551,7 +41057,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.ParserResult.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -40559,7 +41065,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.ParserResult.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -40701,7 +41207,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.ClangParser managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.ClangParser managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -40714,11 +41232,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ClangParser)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -40738,7 +41256,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ClangParser(void* native, bool skipVTables = false) @@ -40752,14 +41270,14 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.ClangParser.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } public ClangParser(global::CppSharp.Parser.ClangParser _0) { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.ClangParser.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.ClangParser.__Internal*) __Instance) = *((global::CppSharp.Parser.ClangParser.__Internal*) _0.__Instance); } @@ -40840,23 +41358,582 @@ namespace CppSharp namespace Std { - namespace __1 + namespace CompressedPair { - namespace Pair + [StructLayout(LayoutKind.Sequential, Size = 4)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_NativeLibrary___N_std_N___1_S_allocator__S1_ { - [StructLayout(LayoutKind.Sequential, Size = 16)] - public unsafe partial struct __Internalc__N_std_N___1_S_pair____N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C____N_CppSharp_N_CppParser_N_AST_S_Declaration - { - internal global::Std.BasicString.__Internalc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C first; - internal __IntPtr second; - } + internal __IntPtr __value_; + } - [StructLayout(LayoutKind.Sequential, Size = 16)] - public unsafe partial struct __Internalc__N_std_N___1_S_pair__1__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C____N_CppSharp_N_CppParser_N_AST_S_Declaration - { - internal global::Std.BasicString.__Internalc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C first; - internal __IntPtr second; - } + [StructLayout(LayoutKind.Sequential, Size = 4)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_S_ParserDiagnostic___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 4)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_N_AST_S_HTMLStartTagComment_S_Attribute___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 4)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_N_AST_S_InlineCommandComment_S_Argument___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 4)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_VerbatimBlockLineComment___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 4)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_N_AST_S_BlockCommandComment_S_Argument___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 4)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_InlineContentComment___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 4)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Expr___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 4)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Stmt___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 4)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_TranslationUnit___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 4)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_MacroDefinition___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 4)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_VarTemplateSpecialization___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 4)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_ExpressionObsolete___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 4)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_ClassTemplateSpecialization___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 4)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Namespace___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 4)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Enumeration___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 4)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Enumeration_S_Item___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 4)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Function___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 4)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Class___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 4)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_N_AST_S_LayoutBase___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 4)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_N_AST_S_LayoutField___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 4)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_N_AST_S_VFTableInfo___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 4)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_N_AST_S_VTableComponent___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 4)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_AccessSpecifierDecl___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 4)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Method___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 4)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_N_AST_S_TemplateArgument___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 4)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_FunctionTemplateSpecialization___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 4)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Parameter___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 4)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Field___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 4)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_BaseClassSpecifier___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 4)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair__l___N_std_N___1_S___map_value_compare____N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C___N_std_N___1_U___value_type__S1_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_N___1_S_less__S1__Vb1 + { + internal uint __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 4)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair____N_std_N___1_S___tree_end_node_____N_std_N___1_S___tree_node_base___v___N_std_N___1_S_allocator____N_std_N___1_S___tree_node____N_std_N___1_U___value_type____N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C____N_CppSharp_N_CppParser_N_AST_S_Declaration_S3_ + { + internal global::Std.TreeEndNode.__Internal_Ptr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 4)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Friend___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 4)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Variable___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 4)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_TypeAlias___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 4)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_TypedefDecl___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 4)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Template___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 4)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_BlockContentComment___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 4)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 4)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + } + +} +namespace Std +{ + namespace Vector + { + [StructLayout(LayoutKind.Sequential, Size = 12)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_NativeLibrary___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_NativeLibrary___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 12)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_S_ParserDiagnostic___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_S_ParserDiagnostic___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 12)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_N_AST_S_HTMLStartTagComment_S_Attribute___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_N_AST_S_HTMLStartTagComment_S_Attribute___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 12)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_N_AST_S_InlineCommandComment_S_Argument___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_N_AST_S_InlineCommandComment_S_Argument___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 12)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_VerbatimBlockLineComment___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_VerbatimBlockLineComment___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 12)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_N_AST_S_BlockCommandComment_S_Argument___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_N_AST_S_BlockCommandComment_S_Argument___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 12)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_InlineContentComment___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_InlineContentComment___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 12)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Expr___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Expr___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 12)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Stmt___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Stmt___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 12)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TranslationUnit___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_TranslationUnit___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 12)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_MacroDefinition___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_MacroDefinition___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 12)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_VarTemplateSpecialization___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_VarTemplateSpecialization___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 12)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_ExpressionObsolete___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_ExpressionObsolete___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 12)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_ClassTemplateSpecialization___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_ClassTemplateSpecialization___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 12)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Enumeration_S_Item___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Enumeration_S_Item___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 12)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_N_AST_S_LayoutBase___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_N_AST_S_LayoutBase___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 12)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_N_AST_S_LayoutField___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_N_AST_S_LayoutField___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 12)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_N_AST_S_VTableComponent___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_N_AST_S_VTableComponent___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 12)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_N_AST_S_VFTableInfo___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_N_AST_S_VFTableInfo___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 12)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_AccessSpecifierDecl___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_AccessSpecifierDecl___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 12)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_N_AST_S_TemplateArgument___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_N_AST_S_TemplateArgument___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 12)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_FunctionTemplateSpecialization___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_FunctionTemplateSpecialization___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 12)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Parameter___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Parameter___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 12)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Method___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Method___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 12)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Field___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Field___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 12)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_BaseClassSpecifier___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_BaseClassSpecifier___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 12)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Friend___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Friend___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 12)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Variable___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Variable___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 12)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TypeAlias___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_TypeAlias___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 12)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TypedefDecl___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_TypedefDecl___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 12)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Template___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Template___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 12)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Class___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Class___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 12)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Function___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Function___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 12)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Enumeration___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Enumeration___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 12)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Namespace___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Namespace___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 12)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_BlockContentComment___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_BlockContentComment___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 12)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 12)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_N___1_S_allocator__S1_ __end_cap_; + } + } + +} +namespace Std +{ + namespace Tree + { + [StructLayout(LayoutKind.Sequential, Size = 12)] + public unsafe partial struct __Internalc__N_std_N___1_S___tree____N_std_N___1_U___value_type____N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_N___1_S___map_value_compare__S1__S0____N_std_N___1_S_less__S1__Vb1___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_node_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair____N_std_N___1_S___tree_end_node_____N_std_N___1_S___tree_node_base___v___N_std_N___1_S_allocator____N_std_N___1_S___tree_node____N_std_N___1_U___value_type____N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C____N_CppSharp_N_CppParser_N_AST_S_Declaration_S3_ __pair1_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair__l___N_std_N___1_S___map_value_compare____N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C___N_std_N___1_U___value_type__S1_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_N___1_S_less__S1__Vb1 __pair3_; + } + } + +} +namespace Std +{ + namespace Map + { + [StructLayout(LayoutKind.Sequential, Size = 12)] + public unsafe partial struct __Internalc__N_std_N___1_S_map____N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_N___1_S_less__S0____N_std_N___1_S_allocator____N_std_N___1_S_pair__1S0__S3_ + { + internal global::Std.Tree.__Internalc__N_std_N___1_S___tree____N_std_N___1_U___value_type____N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_N___1_S___map_value_compare__S1__S0____N_std_N___1_S_less__S1__Vb1___N_std_N___1_S_allocator__S0_ __tree_; } } } diff --git a/src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/Std.cs b/src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/Std.cs index c57374e8..a2bb601c 100644 --- a/src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/Std.cs +++ b/src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/Std.cs @@ -41,257 +41,17 @@ namespace Std internal global::Std.BasicString.Rep.__Internalc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C __value_; } - [StructLayout(LayoutKind.Sequential, Size = 4)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 4)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 4)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_BlockContentComment___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 4)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Template___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 4)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_TypedefDecl___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 4)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_TypeAlias___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 4)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Variable___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 4)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Friend___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 4)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair____N_std_N___1_S___tree_end_node_____N_std_N___1_S___tree_node_base___v___N_std_N___1_S_allocator____N_std_N___1_S___tree_node____N_std_N___1_U___value_type____N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C____N_CppSharp_N_CppParser_N_AST_S_Declaration_S3_ - { - internal global::Std.TreeEndNode.__Internal_Ptr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 4)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair__l___N_std_N___1_S___map_value_compare____N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C___N_std_N___1_U___value_type__S1_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_N___1_S_less__S1__Vb1 - { - internal uint __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 4)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_BaseClassSpecifier___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 4)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Field___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 4)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Parameter___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 4)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_FunctionTemplateSpecialization___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 4)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_N_AST_S_TemplateArgument___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 4)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Method___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 4)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_AccessSpecifierDecl___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 4)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_N_AST_S_VTableComponent___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 4)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_N_AST_S_VFTableInfo___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 4)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_N_AST_S_LayoutField___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 4)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_N_AST_S_LayoutBase___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 4)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Class___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 4)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Function___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 4)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Enumeration_S_Item___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 4)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Enumeration___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 4)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Namespace___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - [StructLayout(LayoutKind.Sequential, Size = 4)] public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair_____N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C___N_std_N___1_S_allocator__S1_ { internal __IntPtr __value_; } - [StructLayout(LayoutKind.Sequential, Size = 4)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_ClassTemplateSpecialization___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 4)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_ExpressionObsolete___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 4)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_VarTemplateSpecialization___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 4)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_MacroDefinition___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 4)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_TranslationUnit___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 4)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Stmt___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 4)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Expr___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 4)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_InlineContentComment___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 4)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_N_AST_S_BlockCommandComment_S_Argument___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - [StructLayout(LayoutKind.Sequential, Size = 4)] public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair___i___N_std_N___1_S_allocator__i { internal __IntPtr __value_; } - - [StructLayout(LayoutKind.Sequential, Size = 4)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_VerbatimBlockLineComment___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 4)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_N_AST_S_InlineCommandComment_S_Argument___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 4)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_N_AST_S_HTMLStartTagComment_S_Attribute___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 4)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_S_ParserDiagnostic___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 4)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_NativeLibrary___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } } namespace Allocator @@ -308,7 +68,19 @@ namespace Std { public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary> NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary>(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary> NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary>(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::Std.Allocator<_Tp> managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::Std.Allocator<_Tp> managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -321,11 +93,11 @@ namespace Std { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Allocator<_Tp>)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -345,7 +117,7 @@ namespace Std : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Allocator(void* native, bool skipVTables = false) @@ -362,7 +134,7 @@ namespace Std { __Instance = Marshal.AllocHGlobal(sizeof(global::Std.Allocator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); global::Std.Allocator.__Internal.ctorc__N_std_N___1_S_allocator__C(__Instance); return; } @@ -393,198 +165,6 @@ namespace Std { namespace Vector { - [StructLayout(LayoutKind.Sequential, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_BlockContentComment___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_BlockContentComment___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Namespace___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Namespace___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Enumeration___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Enumeration___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Function___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Function___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Class___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Class___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Template___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Template___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TypedefDecl___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_TypedefDecl___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TypeAlias___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_TypeAlias___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Variable___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Variable___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Friend___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Friend___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_BaseClassSpecifier___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_BaseClassSpecifier___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Field___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Field___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Method___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Method___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Parameter___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Parameter___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_FunctionTemplateSpecialization___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_FunctionTemplateSpecialization___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_N_AST_S_TemplateArgument___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_N_AST_S_TemplateArgument___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_AccessSpecifierDecl___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_AccessSpecifierDecl___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_N_AST_S_VFTableInfo___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_N_AST_S_VFTableInfo___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_N_AST_S_VTableComponent___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_N_AST_S_VTableComponent___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_N_AST_S_LayoutField___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_N_AST_S_LayoutField___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_N_AST_S_LayoutBase___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_N_AST_S_LayoutBase___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Enumeration_S_Item___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Enumeration_S_Item___N_std_N___1_S_allocator__S1_ __end_cap_; - } - [StructLayout(LayoutKind.Sequential, Size = 12)] public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C___N_std_N___1_S_allocator__S0_ { @@ -593,78 +173,6 @@ namespace Std internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair_____N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C___N_std_N___1_S_allocator__S1_ __end_cap_; } - [StructLayout(LayoutKind.Sequential, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_ClassTemplateSpecialization___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_ClassTemplateSpecialization___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_ExpressionObsolete___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_ExpressionObsolete___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_VarTemplateSpecialization___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_VarTemplateSpecialization___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_MacroDefinition___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_MacroDefinition___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TranslationUnit___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_TranslationUnit___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Stmt___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Stmt___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Expr___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Expr___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_InlineContentComment___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_InlineContentComment___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_N_AST_S_BlockCommandComment_S_Argument___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_N_AST_S_BlockCommandComment_S_Argument___N_std_N___1_S_allocator__S1_ __end_cap_; - } - [StructLayout(LayoutKind.Sequential, Size = 12)] public unsafe partial struct __Internalc__N_std_N___1_S_vector__i___N_std_N___1_S_allocator__i { @@ -672,62 +180,11 @@ namespace Std internal __IntPtr __end_; internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair___i___N_std_N___1_S_allocator__i __end_cap_; } - - [StructLayout(LayoutKind.Sequential, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_VerbatimBlockLineComment___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_VerbatimBlockLineComment___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_N_AST_S_InlineCommandComment_S_Argument___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_N_AST_S_InlineCommandComment_S_Argument___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_N_AST_S_HTMLStartTagComment_S_Attribute___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_N_AST_S_HTMLStartTagComment_S_Attribute___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_S_ParserDiagnostic___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_S_ParserDiagnostic___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_NativeLibrary___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_NativeLibrary___N_std_N___1_S_allocator__S1_ __end_cap_; - } } } namespace Std { - namespace Tree - { - [StructLayout(LayoutKind.Sequential, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S___tree____N_std_N___1_U___value_type____N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_N___1_S___map_value_compare__S1__S0____N_std_N___1_S_less__S1__Vb1___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_node_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair____N_std_N___1_S___tree_end_node_____N_std_N___1_S___tree_node_base___v___N_std_N___1_S_allocator____N_std_N___1_S___tree_node____N_std_N___1_U___value_type____N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C____N_CppSharp_N_CppParser_N_AST_S_Declaration_S3_ __pair1_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair__l___N_std_N___1_S___map_value_compare____N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C___N_std_N___1_U___value_type__S1_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_N___1_S_less__S1__Vb1 __pair3_; - } - } - namespace TreeEndNode { [StructLayout(LayoutKind.Sequential, Size = 4)] @@ -740,14 +197,6 @@ namespace Std namespace Std { - namespace Map - { - [StructLayout(LayoutKind.Sequential, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_map____N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_N___1_S_less__S0____N_std_N___1_S_allocator____N_std_N___1_S_pair__1S0__S3_ - { - internal global::Std.Tree.__Internalc__N_std_N___1_S___tree____N_std_N___1_U___value_type____N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_N___1_S___map_value_compare__S1__S0____N_std_N___1_S_less__S1__Vb1___N_std_N___1_S_allocator__S0_ __tree_; - } - } } namespace Std @@ -764,7 +213,19 @@ namespace Std { public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary> NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary>(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary> NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary>(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::Std.CharTraits<_CharT> managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::Std.CharTraits<_CharT> managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -777,11 +238,11 @@ namespace Std { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CharTraits<_CharT>)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -801,7 +262,7 @@ namespace Std : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CharTraits(void* native, bool skipVTables = false) @@ -849,10 +310,17 @@ namespace Std namespace Rep { - [StructLayout(LayoutKind.Sequential, Size = 12)] + [StructLayout(LayoutKind.Explicit, Size = 12)] public unsafe partial struct __Internalc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C { - internal global::Std.BasicString.Rep._0.__Internal _0; + [FieldOffset(0)] + internal global::Std.BasicString.Long.__Internal __l; + + [FieldOffset(0)] + internal global::Std.BasicString.Short.__Internalc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C __s; + + [FieldOffset(0)] + internal global::Std.BasicString.Raw.__Internal __r; } namespace _0 @@ -888,10 +356,16 @@ namespace Std namespace Short { - [StructLayout(LayoutKind.Sequential, Size = 12)] + [StructLayout(LayoutKind.Explicit, Size = 12)] public unsafe partial struct __Internalc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C { - internal global::Std.BasicString.Short._0.__Internal _0; + [FieldOffset(0)] + internal byte __size_; + + [FieldOffset(0)] + internal sbyte __lx; + + [FieldOffset(1)] internal fixed sbyte __data_[11]; } @@ -926,7 +400,19 @@ namespace Std { public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary> NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary>(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary> NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary>(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::Std.BasicString<_CharT, _Traits, _Allocator> managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::Std.BasicString<_CharT, _Traits, _Allocator> managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -939,11 +425,11 @@ namespace Std { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (BasicString<_CharT, _Traits, _Allocator>)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -963,7 +449,7 @@ namespace Std : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected BasicString(void* native, bool skipVTables = false) @@ -982,7 +468,7 @@ namespace Std { __Instance = Marshal.AllocHGlobal(sizeof(global::Std.BasicString.__Internalc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); global::Std.BasicString.__Internalc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C.ctorc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C(__Instance); return; } diff --git a/src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/CppSharp.CppParser.cs b/src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/CppSharp.CppParser.cs index 803e4934..e6d43d95 100644 --- a/src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/CppSharp.CppParser.cs +++ b/src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/CppSharp.CppParser.cs @@ -103,7 +103,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.NativeLibrary managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.NativeLibrary managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -116,11 +128,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (NativeLibrary)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -140,7 +152,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected NativeLibrary(void* native, bool skipVTables = false) @@ -154,7 +166,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.NativeLibrary.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -162,7 +174,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.NativeLibrary.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -283,7 +295,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.Comment managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.Comment managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -296,11 +320,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Comment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -320,7 +344,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Comment(void* native, bool skipVTables = false) @@ -334,7 +358,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Comment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, kind); } @@ -342,7 +366,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Comment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.Comment.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.Comment.__Internal*) _0.__Instance); } @@ -409,11 +433,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (BlockContentComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -433,7 +457,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected BlockContentComment(void* native, bool skipVTables = false) @@ -446,7 +470,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BlockContentComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -455,7 +479,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BlockContentComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, Kind); } @@ -464,7 +488,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BlockContentComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.BlockContentComment.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.BlockContentComment.__Internal*) _0.__Instance); } @@ -513,11 +537,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (FullComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -537,7 +561,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected FullComment(void* native, bool skipVTables = false) @@ -550,7 +574,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FullComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -559,7 +583,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FullComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -639,11 +663,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (InlineContentComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -663,7 +687,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected InlineContentComment(void* native, bool skipVTables = false) @@ -676,7 +700,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.InlineContentComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -685,7 +709,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.InlineContentComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, Kind); } @@ -694,7 +718,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.InlineContentComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.InlineContentComment.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.InlineContentComment.__Internal*) _0.__Instance); } @@ -757,11 +781,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ParagraphComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -781,7 +805,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ParagraphComment(void* native, bool skipVTables = false) @@ -794,7 +818,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ParagraphComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -803,7 +827,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ParagraphComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -923,7 +947,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.BlockCommandComment.Argument managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.BlockCommandComment.Argument managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -936,11 +972,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Argument)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -960,7 +996,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Argument(void* native, bool skipVTables = false) @@ -974,7 +1010,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BlockCommandComment.Argument.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -982,7 +1018,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BlockCommandComment.Argument.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -1033,11 +1069,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (BlockCommandComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -1057,7 +1093,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected BlockCommandComment(void* native, bool skipVTables = false) @@ -1070,7 +1106,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BlockCommandComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -1079,7 +1115,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BlockCommandComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, Kind); } @@ -1088,7 +1124,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BlockCommandComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -1212,11 +1248,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ParamCommandComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -1236,7 +1272,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ParamCommandComment(void* native, bool skipVTables = false) @@ -1249,7 +1285,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ParamCommandComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -1258,7 +1294,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ParamCommandComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -1349,11 +1385,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TParamCommandComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -1373,7 +1409,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TParamCommandComment(void* native, bool skipVTables = false) @@ -1386,7 +1422,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TParamCommandComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -1395,7 +1431,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TParamCommandComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -1474,11 +1510,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (VerbatimBlockLineComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -1498,7 +1534,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected VerbatimBlockLineComment(void* native, bool skipVTables = false) @@ -1511,7 +1547,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VerbatimBlockLineComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -1520,7 +1556,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VerbatimBlockLineComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -1599,11 +1635,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (VerbatimBlockComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -1623,7 +1659,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected VerbatimBlockComment(void* native, bool skipVTables = false) @@ -1636,7 +1672,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VerbatimBlockComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -1645,7 +1681,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VerbatimBlockComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -1728,11 +1764,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (VerbatimLineComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -1752,7 +1788,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected VerbatimLineComment(void* native, bool skipVTables = false) @@ -1765,7 +1801,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VerbatimLineComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -1774,7 +1810,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VerbatimLineComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -1872,7 +1908,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.InlineCommandComment.Argument managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.InlineCommandComment.Argument managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -1885,11 +1933,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Argument)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -1909,7 +1957,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Argument(void* native, bool skipVTables = false) @@ -1923,7 +1971,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.InlineCommandComment.Argument.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -1931,7 +1979,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.InlineCommandComment.Argument.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -1982,11 +2030,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (InlineCommandComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -2006,7 +2054,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected InlineCommandComment(void* native, bool skipVTables = false) @@ -2019,7 +2067,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.InlineCommandComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -2028,7 +2076,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.InlineCommandComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -2135,11 +2183,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (HTMLTagComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -2159,7 +2207,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected HTMLTagComment(void* native, bool skipVTables = false) @@ -2172,7 +2220,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.HTMLTagComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -2181,7 +2229,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.HTMLTagComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, Kind); } @@ -2190,7 +2238,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.HTMLTagComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.HTMLTagComment.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.HTMLTagComment.__Internal*) _0.__Instance); } @@ -2252,7 +2300,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -2265,11 +2325,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Attribute)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -2289,7 +2349,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Attribute(void* native, bool skipVTables = false) @@ -2303,7 +2363,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -2311,7 +2371,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -2376,11 +2436,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (HTMLStartTagComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -2400,7 +2460,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected HTMLStartTagComment(void* native, bool skipVTables = false) @@ -2413,7 +2473,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.HTMLStartTagComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -2422,7 +2482,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.HTMLStartTagComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -2518,11 +2578,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (HTMLEndTagComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -2542,7 +2602,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected HTMLEndTagComment(void* native, bool skipVTables = false) @@ -2555,7 +2615,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.HTMLEndTagComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -2564,7 +2624,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.HTMLEndTagComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -2629,11 +2689,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TextComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -2653,7 +2713,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TextComment(void* native, bool skipVTables = false) @@ -2666,7 +2726,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TextComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -2675,7 +2735,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TextComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -2734,7 +2794,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.RawComment managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.RawComment managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -2747,11 +2819,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (RawComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -2771,7 +2843,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected RawComment(void* native, bool skipVTables = false) @@ -2785,7 +2857,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.RawComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -2793,7 +2865,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.RawComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -2901,7 +2973,7 @@ namespace CppSharp } private SourceLocation.__Internal __instance; - internal SourceLocation.__Internal __Instance { get { return __instance; } } + internal SourceLocation.__Internal __Instance => __instance; internal static SourceLocation __CreateInstance(__IntPtr native, bool skipVTables = false) { @@ -2980,7 +3052,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.SourceRange managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.SourceRange managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -2993,11 +3077,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (SourceRange)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -3017,7 +3101,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected SourceRange(void* native, bool skipVTables = false) @@ -3031,7 +3115,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.SourceRange.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.SourceRange.__Internal*) __Instance) = *((global::CppSharp.Parser.SourceRange.__Internal*) _0.__Instance); } @@ -3039,7 +3123,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.SourceRange.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -3190,7 +3274,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.Type managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.Type managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -3203,11 +3299,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Type)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -3227,7 +3323,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Type(void* native, bool skipVTables = false) @@ -3241,7 +3337,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Type.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, kind); } @@ -3249,7 +3345,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Type.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -3321,7 +3417,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.TypeQualifiers managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.TypeQualifiers managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -3334,11 +3442,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TypeQualifiers)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -3358,7 +3466,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TypeQualifiers(void* native, bool skipVTables = false) @@ -3372,7 +3480,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypeQualifiers.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.TypeQualifiers.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.TypeQualifiers.__Internal*) _0.__Instance); } @@ -3380,7 +3488,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypeQualifiers.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } public void Dispose() @@ -3458,7 +3566,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.QualifiedType managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.QualifiedType managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -3471,11 +3591,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (QualifiedType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -3495,7 +3615,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected QualifiedType(void* native, bool skipVTables = false) @@ -3509,7 +3629,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.QualifiedType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -3517,7 +3637,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.QualifiedType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.QualifiedType.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.QualifiedType.__Internal*) _0.__Instance); } @@ -3594,11 +3714,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TagType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -3618,7 +3738,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TagType(void* native, bool skipVTables = false) @@ -3631,7 +3751,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TagType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -3640,7 +3760,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TagType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -3698,11 +3818,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ArrayType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -3722,7 +3842,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ArrayType(void* native, bool skipVTables = false) @@ -3735,7 +3855,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ArrayType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -3744,7 +3864,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ArrayType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -3849,11 +3969,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (FunctionType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -3873,7 +3993,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected FunctionType(void* native, bool skipVTables = false) @@ -3886,7 +4006,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FunctionType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -3895,7 +4015,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FunctionType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -4023,11 +4143,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (PointerType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -4047,7 +4167,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected PointerType(void* native, bool skipVTables = false) @@ -4060,7 +4180,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PointerType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -4069,7 +4189,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PointerType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -4130,11 +4250,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (MemberPointerType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -4154,7 +4274,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected MemberPointerType(void* native, bool skipVTables = false) @@ -4167,7 +4287,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MemberPointerType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -4176,7 +4296,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MemberPointerType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -4224,11 +4344,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TypedefType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -4248,7 +4368,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TypedefType(void* native, bool skipVTables = false) @@ -4261,7 +4381,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypedefType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -4270,7 +4390,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypedefType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -4318,11 +4438,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (AttributedType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -4342,7 +4462,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected AttributedType(void* native, bool skipVTables = false) @@ -4355,7 +4475,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AttributedType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -4364,7 +4484,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AttributedType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -4429,11 +4549,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DecayedType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -4453,7 +4573,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DecayedType(void* native, bool skipVTables = false) @@ -4466,7 +4586,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DecayedType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -4475,7 +4595,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DecayedType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -4559,7 +4679,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.TemplateArgument managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.TemplateArgument managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -4572,11 +4704,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TemplateArgument)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -4596,7 +4728,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TemplateArgument(void* native, bool skipVTables = false) @@ -4610,7 +4742,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateArgument.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -4618,7 +4750,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateArgument.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.TemplateArgument.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.TemplateArgument.__Internal*) _0.__Instance); } @@ -4738,11 +4870,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TemplateSpecializationType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -4762,7 +4894,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TemplateSpecializationType(void* native, bool skipVTables = false) @@ -4775,7 +4907,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateSpecializationType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -4784,7 +4916,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateSpecializationType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -4906,11 +5038,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DependentTemplateSpecializationType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -4930,7 +5062,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DependentTemplateSpecializationType(void* native, bool skipVTables = false) @@ -4943,7 +5075,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DependentTemplateSpecializationType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -4952,7 +5084,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DependentTemplateSpecializationType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -5050,11 +5182,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TemplateParameterType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -5074,7 +5206,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TemplateParameterType(void* native, bool skipVTables = false) @@ -5087,7 +5219,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateParameterType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -5096,7 +5228,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateParameterType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -5198,11 +5330,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TemplateParameterSubstitutionType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -5222,7 +5354,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TemplateParameterSubstitutionType(void* native, bool skipVTables = false) @@ -5235,7 +5367,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateParameterSubstitutionType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -5244,7 +5376,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateParameterSubstitutionType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -5307,11 +5439,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (InjectedClassNameType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -5331,7 +5463,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected InjectedClassNameType(void* native, bool skipVTables = false) @@ -5344,7 +5476,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.InjectedClassNameType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -5353,7 +5485,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.InjectedClassNameType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -5419,11 +5551,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DependentNameType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -5443,7 +5575,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DependentNameType(void* native, bool skipVTables = false) @@ -5456,7 +5588,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DependentNameType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -5465,7 +5597,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DependentNameType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -5541,11 +5673,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (PackExpansionType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -5565,7 +5697,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected PackExpansionType(void* native, bool skipVTables = false) @@ -5578,7 +5710,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PackExpansionType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -5587,7 +5719,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PackExpansionType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -5621,11 +5753,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (UnaryTransformType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -5645,7 +5777,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected UnaryTransformType(void* native, bool skipVTables = false) @@ -5658,7 +5790,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnaryTransformType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -5667,7 +5799,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnaryTransformType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -5730,11 +5862,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (UnresolvedUsingType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -5754,7 +5886,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected UnresolvedUsingType(void* native, bool skipVTables = false) @@ -5767,7 +5899,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnresolvedUsingType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -5776,7 +5908,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnresolvedUsingType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -5824,11 +5956,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (VectorType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -5848,7 +5980,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected VectorType(void* native, bool skipVTables = false) @@ -5861,7 +5993,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VectorType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -5870,7 +6002,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VectorType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -5931,11 +6063,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (BuiltinType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -5955,7 +6087,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected BuiltinType(void* native, bool skipVTables = false) @@ -5968,7 +6100,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BuiltinType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -5977,7 +6109,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BuiltinType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -6267,7 +6399,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.Declaration managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.Declaration managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -6280,11 +6424,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Declaration)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -6304,7 +6448,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Declaration(void* native, bool skipVTables = false) @@ -6318,7 +6462,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Declaration.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, kind); } @@ -6326,7 +6470,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Declaration.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -6851,11 +6995,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DeclarationContext)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -6875,7 +7019,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DeclarationContext(void* native, bool skipVTables = false) @@ -6888,7 +7032,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DeclarationContext.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, kind); } @@ -6897,7 +7041,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DeclarationContext.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -7256,11 +7400,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TypedefNameDecl)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -7280,7 +7424,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TypedefNameDecl(void* native, bool skipVTables = false) @@ -7293,7 +7437,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypedefNameDecl.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, kind); } @@ -7302,7 +7446,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypedefNameDecl.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -7393,11 +7537,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TypedefDecl)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -7417,7 +7561,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TypedefDecl(void* native, bool skipVTables = false) @@ -7430,7 +7574,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypedefDecl.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -7439,7 +7583,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypedefDecl.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -7511,11 +7655,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TypeAlias)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -7535,7 +7679,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TypeAlias(void* native, bool skipVTables = false) @@ -7548,7 +7692,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypeAlias.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -7557,7 +7701,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypeAlias.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -7642,11 +7786,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Friend)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -7666,7 +7810,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Friend(void* native, bool skipVTables = false) @@ -7679,7 +7823,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Friend.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -7688,7 +7832,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Friend.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -7746,7 +7890,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.StatementObsolete managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.StatementObsolete managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -7759,11 +7915,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (StatementObsolete)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -7783,7 +7939,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected StatementObsolete(void* native, bool skipVTables = false) @@ -7797,7 +7953,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.StatementObsolete.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, str); var __arg0 = __basicString0.__Instance; @@ -7810,7 +7966,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.StatementObsolete.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -7907,11 +8063,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ExpressionObsolete)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -7931,7 +8087,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ExpressionObsolete(void* native, bool skipVTables = false) @@ -7944,7 +8100,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ExpressionObsolete.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, str); var __arg0 = __basicString0.__Instance; @@ -7958,7 +8114,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ExpressionObsolete.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -8012,11 +8168,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (BinaryOperatorObsolete)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -8036,7 +8192,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected BinaryOperatorObsolete(void* native, bool skipVTables = false) @@ -8049,7 +8205,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BinaryOperatorObsolete.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, str); var __arg0 = __basicString0.__Instance; @@ -8068,7 +8224,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BinaryOperatorObsolete.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -8174,11 +8330,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CallExprObsolete)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -8198,7 +8354,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CallExprObsolete(void* native, bool skipVTables = false) @@ -8211,7 +8367,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CallExprObsolete.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, str); var __arg0 = __basicString0.__Instance; @@ -8225,7 +8381,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CallExprObsolete.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -8319,11 +8475,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXConstructExprObsolete)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -8343,7 +8499,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXConstructExprObsolete(void* native, bool skipVTables = false) @@ -8356,7 +8512,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXConstructExprObsolete.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, str); var __arg0 = __basicString0.__Instance; @@ -8370,7 +8526,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXConstructExprObsolete.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -8476,11 +8632,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Parameter)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -8500,7 +8656,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Parameter(void* native, bool skipVTables = false) @@ -8513,7 +8669,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Parameter.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -8522,7 +8678,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Parameter.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -8717,11 +8873,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Function)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -8741,7 +8897,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Function(void* native, bool skipVTables = false) @@ -8754,7 +8910,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Function.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -8763,7 +8919,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Function.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -9174,11 +9330,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Method)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -9198,7 +9354,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Method(void* native, bool skipVTables = false) @@ -9211,7 +9367,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Method.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -9220,7 +9376,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Method.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -9530,11 +9686,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Item)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -9554,7 +9710,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Item(void* native, bool skipVTables = false) @@ -9567,7 +9723,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Enumeration.Item.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -9576,7 +9732,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Enumeration.Item.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -9635,11 +9791,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Enumeration)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -9659,7 +9815,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Enumeration(void* native, bool skipVTables = false) @@ -9672,7 +9828,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Enumeration.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -9681,7 +9837,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Enumeration.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -9837,11 +9993,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Variable)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -9861,7 +10017,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Variable(void* native, bool skipVTables = false) @@ -9874,7 +10030,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Variable.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -9883,7 +10039,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Variable.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -9981,7 +10137,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.BaseClassSpecifier managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.BaseClassSpecifier managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -9994,11 +10162,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (BaseClassSpecifier)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -10018,7 +10186,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected BaseClassSpecifier(void* native, bool skipVTables = false) @@ -10032,7 +10200,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BaseClassSpecifier.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -10040,7 +10208,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BaseClassSpecifier.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.BaseClassSpecifier.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.BaseClassSpecifier.__Internal*) _0.__Instance); } @@ -10167,11 +10335,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Field)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -10191,7 +10359,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Field(void* native, bool skipVTables = false) @@ -10204,7 +10372,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Field.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -10213,7 +10381,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Field.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -10338,11 +10506,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (AccessSpecifierDecl)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -10362,7 +10530,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected AccessSpecifierDecl(void* native, bool skipVTables = false) @@ -10375,7 +10543,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AccessSpecifierDecl.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -10384,7 +10552,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AccessSpecifierDecl.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -10425,7 +10593,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.VTableComponent managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.VTableComponent managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -10438,11 +10618,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (VTableComponent)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -10462,7 +10642,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected VTableComponent(void* native, bool skipVTables = false) @@ -10476,7 +10656,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VTableComponent.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -10484,7 +10664,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VTableComponent.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.VTableComponent.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.VTableComponent.__Internal*) _0.__Instance); } @@ -10578,7 +10758,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.VTableLayout managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.VTableLayout managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -10591,11 +10783,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (VTableLayout)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -10615,7 +10807,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected VTableLayout(void* native, bool skipVTables = false) @@ -10629,7 +10821,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VTableLayout.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -10637,7 +10829,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VTableLayout.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -10716,7 +10908,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.VFTableInfo managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.VFTableInfo managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -10729,11 +10933,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (VFTableInfo)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -10753,7 +10957,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected VFTableInfo(void* native, bool skipVTables = false) @@ -10767,7 +10971,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VFTableInfo.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -10775,7 +10979,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VFTableInfo.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -10879,7 +11083,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.LayoutField managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.LayoutField managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -10892,11 +11108,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (LayoutField)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -10916,7 +11132,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected LayoutField(void* native, bool skipVTables = false) @@ -10930,7 +11146,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.LayoutField.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -10938,7 +11154,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.LayoutField.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(other, null)) throw new global::System.ArgumentNullException("other", "Cannot be null because it is a C++ reference (&)."); var __arg0 = other.__Instance; @@ -11041,7 +11257,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.LayoutBase managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.LayoutBase managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -11054,11 +11282,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (LayoutBase)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -11078,7 +11306,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected LayoutBase(void* native, bool skipVTables = false) @@ -11092,7 +11320,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.LayoutBase.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -11100,7 +11328,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.LayoutBase.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(other, null)) throw new global::System.ArgumentNullException("other", "Cannot be null because it is a C++ reference (&)."); var __arg0 = other.__Instance; @@ -11220,7 +11448,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.ClassLayout managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.ClassLayout managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -11233,11 +11473,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ClassLayout)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -11257,7 +11497,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ClassLayout(void* native, bool skipVTables = false) @@ -11271,7 +11511,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ClassLayout.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -11279,7 +11519,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ClassLayout.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -11628,11 +11868,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Class)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -11652,7 +11892,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Class(void* native, bool skipVTables = false) @@ -11665,7 +11905,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Class.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -11674,7 +11914,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Class.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -12038,11 +12278,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Template)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -12062,7 +12302,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Template(void* native, bool skipVTables = false) @@ -12075,7 +12315,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Template.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, kind); } @@ -12084,7 +12324,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Template.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -12093,7 +12333,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Template.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -12214,11 +12454,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TypeAliasTemplate)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -12238,7 +12478,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TypeAliasTemplate(void* native, bool skipVTables = false) @@ -12251,7 +12491,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypeAliasTemplate.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -12260,7 +12500,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypeAliasTemplate.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -12333,11 +12573,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TemplateParameter)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -12357,7 +12597,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TemplateParameter(void* native, bool skipVTables = false) @@ -12370,7 +12610,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateParameter.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, kind); } @@ -12379,7 +12619,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateParameter.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -12498,11 +12738,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TemplateTemplateParameter)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -12522,7 +12762,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TemplateTemplateParameter(void* native, bool skipVTables = false) @@ -12535,7 +12775,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateTemplateParameter.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -12544,7 +12784,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateTemplateParameter.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -12657,11 +12897,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TypeTemplateParameter)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -12681,7 +12921,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TypeTemplateParameter(void* native, bool skipVTables = false) @@ -12694,7 +12934,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypeTemplateParameter.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -12703,7 +12943,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypeTemplateParameter.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -12796,11 +13036,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (NonTypeTemplateParameter)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -12820,7 +13060,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected NonTypeTemplateParameter(void* native, bool skipVTables = false) @@ -12833,7 +13073,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.NonTypeTemplateParameter.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -12842,7 +13082,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.NonTypeTemplateParameter.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -13000,11 +13240,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ClassTemplate)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -13024,7 +13264,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ClassTemplate(void* native, bool skipVTables = false) @@ -13037,7 +13277,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ClassTemplate.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -13046,7 +13286,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ClassTemplate.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -13210,11 +13450,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ClassTemplateSpecialization)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -13234,7 +13474,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ClassTemplateSpecialization(void* native, bool skipVTables = false) @@ -13247,7 +13487,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ClassTemplateSpecialization.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -13256,7 +13496,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ClassTemplateSpecialization.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -13412,11 +13652,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ClassTemplatePartialSpecialization)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -13436,7 +13676,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ClassTemplatePartialSpecialization(void* native, bool skipVTables = false) @@ -13449,7 +13689,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ClassTemplatePartialSpecialization.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -13458,7 +13698,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ClassTemplatePartialSpecialization.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -13546,11 +13786,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (FunctionTemplate)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -13570,7 +13810,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected FunctionTemplate(void* native, bool skipVTables = false) @@ -13583,7 +13823,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FunctionTemplate.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -13592,7 +13832,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FunctionTemplate.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -13690,7 +13930,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.FunctionTemplateSpecialization managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.FunctionTemplateSpecialization managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -13703,11 +13955,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (FunctionTemplateSpecialization)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -13727,7 +13979,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected FunctionTemplateSpecialization(void* native, bool skipVTables = false) @@ -13741,7 +13993,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FunctionTemplateSpecialization.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -13749,7 +14001,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FunctionTemplateSpecialization.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -13915,11 +14167,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (VarTemplate)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -13939,7 +14191,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected VarTemplate(void* native, bool skipVTables = false) @@ -13952,7 +14204,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VarTemplate.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -13961,7 +14213,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VarTemplate.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -14102,11 +14354,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (VarTemplateSpecialization)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -14126,7 +14378,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected VarTemplateSpecialization(void* native, bool skipVTables = false) @@ -14139,7 +14391,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VarTemplateSpecialization.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -14148,7 +14400,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VarTemplateSpecialization.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -14281,11 +14533,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (VarTemplatePartialSpecialization)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -14305,7 +14557,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected VarTemplatePartialSpecialization(void* native, bool skipVTables = false) @@ -14318,7 +14570,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VarTemplatePartialSpecialization.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -14327,7 +14579,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VarTemplatePartialSpecialization.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -14397,11 +14649,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (UnresolvedUsingTypename)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -14421,7 +14673,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected UnresolvedUsingTypename(void* native, bool skipVTables = false) @@ -14434,7 +14686,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnresolvedUsingTypename.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -14443,7 +14695,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnresolvedUsingTypename.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -14526,11 +14778,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Namespace)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -14550,7 +14802,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Namespace(void* native, bool skipVTables = false) @@ -14563,7 +14815,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Namespace.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -14572,7 +14824,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Namespace.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -14626,7 +14878,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.PreprocessedEntity managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.PreprocessedEntity managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -14639,11 +14903,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (PreprocessedEntity)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -14663,7 +14927,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected PreprocessedEntity(void* native, bool skipVTables = false) @@ -14677,7 +14941,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PreprocessedEntity.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -14685,7 +14949,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PreprocessedEntity.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.PreprocessedEntity.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.PreprocessedEntity.__Internal*) _0.__Instance); } @@ -14779,11 +15043,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (MacroDefinition)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -14803,7 +15067,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected MacroDefinition(void* native, bool skipVTables = false) @@ -14816,7 +15080,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MacroDefinition.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -14825,7 +15089,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MacroDefinition.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -14933,11 +15197,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (MacroExpansion)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -14957,7 +15221,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected MacroExpansion(void* native, bool skipVTables = false) @@ -14970,7 +15234,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MacroExpansion.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -14979,7 +15243,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MacroExpansion.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -15119,11 +15383,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TranslationUnit)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -15143,7 +15407,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TranslationUnit(void* native, bool skipVTables = false) @@ -15156,7 +15420,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TranslationUnit.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -15165,7 +15429,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TranslationUnit.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -15279,7 +15543,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.ASTContext managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.ASTContext managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -15292,11 +15568,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ASTContext)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -15316,7 +15592,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ASTContext(void* native, bool skipVTables = false) @@ -15330,7 +15606,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ASTContext.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -15338,7 +15614,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ASTContext.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -15568,7 +15844,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.Stmt managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.Stmt managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -15581,11 +15869,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Stmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -15605,7 +15893,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Stmt(void* native, bool skipVTables = false) @@ -15619,7 +15907,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Stmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -15627,7 +15915,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Stmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -15635,7 +15923,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Stmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.Stmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.Stmt.__Internal*) _0.__Instance); } @@ -15761,11 +16049,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DeclStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -15785,7 +16073,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DeclStmt(void* native, bool skipVTables = false) @@ -15798,7 +16086,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DeclStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -15807,7 +16095,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DeclStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -15915,11 +16203,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (NullStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -15939,7 +16227,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected NullStmt(void* native, bool skipVTables = false) @@ -15952,7 +16240,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.NullStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -15961,7 +16249,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.NullStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.NullStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.NullStmt.__Internal*) _0.__Instance); } @@ -16040,11 +16328,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CompoundStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -16064,7 +16352,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CompoundStmt(void* native, bool skipVTables = false) @@ -16077,7 +16365,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CompoundStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -16086,7 +16374,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CompoundStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -16251,11 +16539,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (SwitchCase)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -16275,7 +16563,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected SwitchCase(void* native, bool skipVTables = false) @@ -16288,7 +16576,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SwitchCase.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -16297,7 +16585,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SwitchCase.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -16306,7 +16594,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SwitchCase.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.SwitchCase.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.SwitchCase.__Internal*) _0.__Instance); } @@ -16390,11 +16678,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CaseStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -16414,7 +16702,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CaseStmt(void* native, bool skipVTables = false) @@ -16427,7 +16715,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CaseStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -16436,7 +16724,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CaseStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CaseStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CaseStmt.__Internal*) _0.__Instance); } @@ -16538,11 +16826,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DefaultStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -16562,7 +16850,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DefaultStmt(void* native, bool skipVTables = false) @@ -16575,7 +16863,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DefaultStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -16584,7 +16872,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DefaultStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.DefaultStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.DefaultStmt.__Internal*) _0.__Instance); } @@ -16632,11 +16920,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (LabelStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -16656,7 +16944,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected LabelStmt(void* native, bool skipVTables = false) @@ -16669,7 +16957,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.LabelStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -16678,7 +16966,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.LabelStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.LabelStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.LabelStmt.__Internal*) _0.__Instance); if (_0.__name_OwnsNativeMemory) this.Name = _0.Name; @@ -16765,11 +17053,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (AttributedStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -16789,7 +17077,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected AttributedStmt(void* native, bool skipVTables = false) @@ -16802,7 +17090,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AttributedStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -16811,7 +17099,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AttributedStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.AttributedStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.AttributedStmt.__Internal*) _0.__Instance); } @@ -16881,11 +17169,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (IfStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -16905,7 +17193,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected IfStmt(void* native, bool skipVTables = false) @@ -16918,7 +17206,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.IfStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -16927,7 +17215,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.IfStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.IfStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.IfStmt.__Internal*) _0.__Instance); } @@ -17127,11 +17415,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (SwitchStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -17151,7 +17439,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected SwitchStmt(void* native, bool skipVTables = false) @@ -17164,7 +17452,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SwitchStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -17173,7 +17461,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SwitchStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.SwitchStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.SwitchStmt.__Internal*) _0.__Instance); } @@ -17317,11 +17605,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (WhileStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -17341,7 +17629,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected WhileStmt(void* native, bool skipVTables = false) @@ -17354,7 +17642,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.WhileStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -17363,7 +17651,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.WhileStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.WhileStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.WhileStmt.__Internal*) _0.__Instance); } @@ -17467,11 +17755,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DoStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -17491,7 +17779,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DoStmt(void* native, bool skipVTables = false) @@ -17504,7 +17792,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DoStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -17513,7 +17801,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DoStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.DoStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.DoStmt.__Internal*) _0.__Instance); } @@ -17619,11 +17907,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ForStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -17643,7 +17931,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ForStmt(void* native, bool skipVTables = false) @@ -17656,7 +17944,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ForStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -17665,7 +17953,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ForStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ForStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ForStmt.__Internal*) _0.__Instance); } @@ -17807,11 +18095,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (GotoStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -17831,7 +18119,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected GotoStmt(void* native, bool skipVTables = false) @@ -17844,7 +18132,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.GotoStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -17853,7 +18141,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.GotoStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.GotoStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.GotoStmt.__Internal*) _0.__Instance); } @@ -17913,11 +18201,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (IndirectGotoStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -17937,7 +18225,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected IndirectGotoStmt(void* native, bool skipVTables = false) @@ -17950,7 +18238,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.IndirectGotoStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -17959,7 +18247,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.IndirectGotoStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.IndirectGotoStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.IndirectGotoStmt.__Internal*) _0.__Instance); } @@ -18031,11 +18319,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ContinueStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -18055,7 +18343,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ContinueStmt(void* native, bool skipVTables = false) @@ -18068,7 +18356,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ContinueStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -18077,7 +18365,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ContinueStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ContinueStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ContinueStmt.__Internal*) _0.__Instance); } @@ -18122,11 +18410,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (BreakStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -18146,7 +18434,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected BreakStmt(void* native, bool skipVTables = false) @@ -18159,7 +18447,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BreakStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -18168,7 +18456,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BreakStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.BreakStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.BreakStmt.__Internal*) _0.__Instance); } @@ -18214,11 +18502,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ReturnStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -18238,7 +18526,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ReturnStmt(void* native, bool skipVTables = false) @@ -18251,7 +18539,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ReturnStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -18260,7 +18548,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ReturnStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ReturnStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ReturnStmt.__Internal*) _0.__Instance); } @@ -18357,11 +18645,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (AsmStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -18381,7 +18669,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected AsmStmt(void* native, bool skipVTables = false) @@ -18394,7 +18682,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AsmStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -18403,7 +18691,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AsmStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -18412,7 +18700,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AsmStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -18650,7 +18938,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.GCCAsmStmt.AsmStringPiece managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.GCCAsmStmt.AsmStringPiece managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -18663,11 +18963,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (AsmStringPiece)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -18687,7 +18987,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected AsmStringPiece(void* native, bool skipVTables = false) @@ -18701,7 +19001,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.GCCAsmStmt.AsmStringPiece.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -18709,7 +19009,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.GCCAsmStmt.AsmStringPiece.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -18812,11 +19112,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (GCCAsmStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -18836,7 +19136,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected GCCAsmStmt(void* native, bool skipVTables = false) @@ -18849,7 +19149,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.GCCAsmStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -18858,7 +19158,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.GCCAsmStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -18936,11 +19236,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (MSAsmStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -18960,7 +19260,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected MSAsmStmt(void* native, bool skipVTables = false) @@ -18973,7 +19273,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MSAsmStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -18982,7 +19282,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MSAsmStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -19087,11 +19387,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (SEHExceptStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -19111,7 +19411,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected SEHExceptStmt(void* native, bool skipVTables = false) @@ -19124,7 +19424,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SEHExceptStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -19133,7 +19433,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SEHExceptStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.SEHExceptStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.SEHExceptStmt.__Internal*) _0.__Instance); } @@ -19207,11 +19507,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (SEHFinallyStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -19231,7 +19531,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected SEHFinallyStmt(void* native, bool skipVTables = false) @@ -19244,7 +19544,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SEHFinallyStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -19253,7 +19553,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SEHFinallyStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.SEHFinallyStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.SEHFinallyStmt.__Internal*) _0.__Instance); } @@ -19317,11 +19617,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (SEHTryStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -19341,7 +19641,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected SEHTryStmt(void* native, bool skipVTables = false) @@ -19354,7 +19654,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SEHTryStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -19363,7 +19663,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SEHTryStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.SEHTryStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.SEHTryStmt.__Internal*) _0.__Instance); } @@ -19477,11 +19777,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (SEHLeaveStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -19501,7 +19801,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected SEHLeaveStmt(void* native, bool skipVTables = false) @@ -19514,7 +19814,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SEHLeaveStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -19523,7 +19823,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SEHLeaveStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.SEHLeaveStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.SEHLeaveStmt.__Internal*) _0.__Instance); } @@ -19605,7 +19905,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.CapturedStmt.Capture managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.CapturedStmt.Capture managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -19618,11 +19930,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Capture)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -19642,7 +19954,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Capture(void* native, bool skipVTables = false) @@ -19656,7 +19968,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CapturedStmt.Capture.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -19664,7 +19976,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CapturedStmt.Capture.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CapturedStmt.Capture.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CapturedStmt.Capture.__Internal*) _0.__Instance); } @@ -19774,11 +20086,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CapturedStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -19798,7 +20110,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CapturedStmt(void* native, bool skipVTables = false) @@ -19811,7 +20123,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CapturedStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -19820,7 +20132,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CapturedStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -19929,11 +20241,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXCatchStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -19953,7 +20265,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXCatchStmt(void* native, bool skipVTables = false) @@ -19966,7 +20278,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXCatchStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -19975,7 +20287,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXCatchStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXCatchStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXCatchStmt.__Internal*) _0.__Instance); } @@ -20051,11 +20363,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXTryStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -20075,7 +20387,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXTryStmt(void* native, bool skipVTables = false) @@ -20088,7 +20400,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXTryStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -20097,7 +20409,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXTryStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXTryStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXTryStmt.__Internal*) _0.__Instance); } @@ -20181,11 +20493,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXForRangeStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -20205,7 +20517,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXForRangeStmt(void* native, bool skipVTables = false) @@ -20218,7 +20530,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXForRangeStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -20227,7 +20539,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXForRangeStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXForRangeStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXForRangeStmt.__Internal*) _0.__Instance); } @@ -20440,11 +20752,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (MSDependentExistsStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -20464,7 +20776,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected MSDependentExistsStmt(void* native, bool skipVTables = false) @@ -20477,7 +20789,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MSDependentExistsStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -20486,7 +20798,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MSDependentExistsStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.MSDependentExistsStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.MSDependentExistsStmt.__Internal*) _0.__Instance); } @@ -20605,7 +20917,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.CoroutineBodyStmt.CtorArgs managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.CoroutineBodyStmt.CtorArgs managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -20618,11 +20942,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CtorArgs)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -20642,7 +20966,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CtorArgs(void* native, bool skipVTables = false) @@ -20656,7 +20980,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoroutineBodyStmt.CtorArgs.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -20664,7 +20988,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoroutineBodyStmt.CtorArgs.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CoroutineBodyStmt.CtorArgs.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CoroutineBodyStmt.CtorArgs.__Internal*) _0.__Instance); } @@ -20696,11 +21020,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CoroutineBodyStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -20720,7 +21044,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CoroutineBodyStmt(void* native, bool skipVTables = false) @@ -20733,7 +21057,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoroutineBodyStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -20742,7 +21066,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoroutineBodyStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CoroutineBodyStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CoroutineBodyStmt.__Internal*) _0.__Instance); } @@ -20965,11 +21289,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CoreturnStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -20989,7 +21313,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CoreturnStmt(void* native, bool skipVTables = false) @@ -21002,7 +21326,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoreturnStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -21011,7 +21335,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoreturnStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CoreturnStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CoreturnStmt.__Internal*) _0.__Instance); } @@ -21415,7 +21739,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.Expr.Classification managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.Expr.Classification managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -21428,11 +21764,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Classification)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -21452,7 +21788,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Classification(void* native, bool skipVTables = false) @@ -21466,7 +21802,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Expr.Classification.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -21474,7 +21810,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Expr.Classification.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.Expr.Classification.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.Expr.Classification.__Internal*) _0.__Instance); } @@ -21610,11 +21946,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Expr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -21634,7 +21970,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Expr(void* native, bool skipVTables = false) @@ -21647,7 +21983,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Expr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -21656,7 +21992,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Expr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -21665,7 +22001,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Expr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.Expr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.Expr.__Internal*) _0.__Instance); } @@ -21905,11 +22241,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (FullExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -21929,7 +22265,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected FullExpr(void* native, bool skipVTables = false) @@ -21942,7 +22278,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FullExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -21951,7 +22287,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FullExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -21960,7 +22296,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FullExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.FullExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.FullExpr.__Internal*) _0.__Instance); } @@ -22025,11 +22361,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ConstantExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -22049,7 +22385,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ConstantExpr(void* native, bool skipVTables = false) @@ -22062,7 +22398,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ConstantExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -22071,7 +22407,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ConstantExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ConstantExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ConstantExpr.__Internal*) _0.__Instance); } } @@ -22120,11 +22456,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (OpaqueValueExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -22144,7 +22480,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected OpaqueValueExpr(void* native, bool skipVTables = false) @@ -22157,7 +22493,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.OpaqueValueExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -22166,7 +22502,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.OpaqueValueExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.OpaqueValueExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.OpaqueValueExpr.__Internal*) _0.__Instance); } @@ -22263,11 +22599,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DeclRefExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -22287,7 +22623,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DeclRefExpr(void* native, bool skipVTables = false) @@ -22300,7 +22636,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DeclRefExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -22309,7 +22645,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DeclRefExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.DeclRefExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.DeclRefExpr.__Internal*) _0.__Instance); } @@ -22513,11 +22849,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (IntegerLiteral)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -22537,7 +22873,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected IntegerLiteral(void* native, bool skipVTables = false) @@ -22550,7 +22886,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.IntegerLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -22559,7 +22895,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.IntegerLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.IntegerLiteral.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.IntegerLiteral.__Internal*) _0.__Instance); } @@ -22632,11 +22968,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (FixedPointLiteral)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -22656,7 +22992,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected FixedPointLiteral(void* native, bool skipVTables = false) @@ -22669,7 +23005,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FixedPointLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -22678,7 +23014,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FixedPointLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.FixedPointLiteral.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.FixedPointLiteral.__Internal*) _0.__Instance); } @@ -22761,11 +23097,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CharacterLiteral)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -22785,7 +23121,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CharacterLiteral(void* native, bool skipVTables = false) @@ -22798,7 +23134,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CharacterLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -22807,7 +23143,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CharacterLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CharacterLiteral.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CharacterLiteral.__Internal*) _0.__Instance); } @@ -22895,11 +23231,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (FloatingLiteral)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -22919,7 +23255,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected FloatingLiteral(void* native, bool skipVTables = false) @@ -22932,7 +23268,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FloatingLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -22941,7 +23277,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FloatingLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.FloatingLiteral.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.FloatingLiteral.__Internal*) _0.__Instance); } @@ -23026,11 +23362,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ImaginaryLiteral)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -23050,7 +23386,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ImaginaryLiteral(void* native, bool skipVTables = false) @@ -23063,7 +23399,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ImaginaryLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -23072,7 +23408,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ImaginaryLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ImaginaryLiteral.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ImaginaryLiteral.__Internal*) _0.__Instance); } @@ -23158,11 +23494,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (StringLiteral)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -23182,7 +23518,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected StringLiteral(void* native, bool skipVTables = false) @@ -23195,7 +23531,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.StringLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -23204,7 +23540,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.StringLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -23478,11 +23814,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (PredefinedExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -23502,7 +23838,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected PredefinedExpr(void* native, bool skipVTables = false) @@ -23515,7 +23851,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PredefinedExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -23524,7 +23860,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PredefinedExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.PredefinedExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.PredefinedExpr.__Internal*) _0.__Instance); } @@ -23598,11 +23934,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ParenExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -23622,7 +23958,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ParenExpr(void* native, bool skipVTables = false) @@ -23635,7 +23971,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ParenExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -23644,7 +23980,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ParenExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ParenExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ParenExpr.__Internal*) _0.__Instance); } @@ -23740,11 +24076,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (UnaryOperator)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -23764,7 +24100,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected UnaryOperator(void* native, bool skipVTables = false) @@ -23777,7 +24113,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnaryOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -23786,7 +24122,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnaryOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.UnaryOperator.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.UnaryOperator.__Internal*) _0.__Instance); } @@ -23979,11 +24315,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (OffsetOfExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -24003,7 +24339,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected OffsetOfExpr(void* native, bool skipVTables = false) @@ -24016,7 +24352,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.OffsetOfExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -24025,7 +24361,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.OffsetOfExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.OffsetOfExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.OffsetOfExpr.__Internal*) _0.__Instance); } @@ -24129,11 +24465,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (UnaryExprOrTypeTraitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -24153,7 +24489,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected UnaryExprOrTypeTraitExpr(void* native, bool skipVTables = false) @@ -24166,7 +24502,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnaryExprOrTypeTraitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -24175,7 +24511,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnaryExprOrTypeTraitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.UnaryExprOrTypeTraitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.UnaryExprOrTypeTraitExpr.__Internal*) _0.__Instance); } @@ -24321,11 +24657,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ArraySubscriptExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -24345,7 +24681,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ArraySubscriptExpr(void* native, bool skipVTables = false) @@ -24358,7 +24694,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ArraySubscriptExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -24367,7 +24703,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ArraySubscriptExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ArraySubscriptExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ArraySubscriptExpr.__Internal*) _0.__Instance); } @@ -24508,11 +24844,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CallExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -24532,7 +24868,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CallExpr(void* native, bool skipVTables = false) @@ -24545,7 +24881,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CallExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -24554,7 +24890,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CallExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -24563,7 +24899,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CallExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -24781,11 +25117,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (MemberExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -24805,7 +25141,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected MemberExpr(void* native, bool skipVTables = false) @@ -24818,7 +25154,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MemberExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -24827,7 +25163,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MemberExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.MemberExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.MemberExpr.__Internal*) _0.__Instance); } @@ -25045,11 +25381,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CompoundLiteralExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -25069,7 +25405,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CompoundLiteralExpr(void* native, bool skipVTables = false) @@ -25082,7 +25418,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CompoundLiteralExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -25091,7 +25427,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CompoundLiteralExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CompoundLiteralExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CompoundLiteralExpr.__Internal*) _0.__Instance); } @@ -25187,11 +25523,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CastExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -25211,7 +25547,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CastExpr(void* native, bool skipVTables = false) @@ -25224,7 +25560,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -25233,7 +25569,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -25242,7 +25578,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CastExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CastExpr.__Internal*) _0.__Instance); if (_0.__castKindName_OwnsNativeMemory) this.CastKindName = _0.CastKindName; @@ -25413,11 +25749,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ImplicitCastExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -25437,7 +25773,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ImplicitCastExpr(void* native, bool skipVTables = false) @@ -25450,7 +25786,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ImplicitCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -25459,7 +25795,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ImplicitCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ImplicitCastExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ImplicitCastExpr.__Internal*) _0.__Instance); } @@ -25528,11 +25864,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ExplicitCastExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -25552,7 +25888,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ExplicitCastExpr(void* native, bool skipVTables = false) @@ -25565,7 +25901,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ExplicitCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -25574,7 +25910,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ExplicitCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -25583,7 +25919,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ExplicitCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ExplicitCastExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ExplicitCastExpr.__Internal*) _0.__Instance); } @@ -25658,11 +25994,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CStyleCastExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -25682,7 +26018,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CStyleCastExpr(void* native, bool skipVTables = false) @@ -25695,7 +26031,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CStyleCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -25704,7 +26040,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CStyleCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CStyleCastExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CStyleCastExpr.__Internal*) _0.__Instance); } @@ -25800,11 +26136,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (BinaryOperator)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -25824,7 +26160,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected BinaryOperator(void* native, bool skipVTables = false) @@ -25837,7 +26173,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BinaryOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -25846,7 +26182,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BinaryOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -25855,7 +26191,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BinaryOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -26197,11 +26533,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CompoundAssignOperator)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -26221,7 +26557,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CompoundAssignOperator(void* native, bool skipVTables = false) @@ -26234,7 +26570,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CompoundAssignOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -26243,7 +26579,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CompoundAssignOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -26344,11 +26680,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (AbstractConditionalOperator)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -26368,7 +26704,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected AbstractConditionalOperator(void* native, bool skipVTables = false) @@ -26381,7 +26717,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AbstractConditionalOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -26390,7 +26726,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AbstractConditionalOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -26399,7 +26735,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AbstractConditionalOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.AbstractConditionalOperator.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.AbstractConditionalOperator.__Internal*) _0.__Instance); } @@ -26524,11 +26860,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ConditionalOperator)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -26548,7 +26884,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ConditionalOperator(void* native, bool skipVTables = false) @@ -26561,7 +26897,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ConditionalOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -26570,7 +26906,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ConditionalOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ConditionalOperator.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ConditionalOperator.__Internal*) _0.__Instance); } @@ -26650,11 +26986,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (BinaryConditionalOperator)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -26674,7 +27010,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected BinaryConditionalOperator(void* native, bool skipVTables = false) @@ -26687,7 +27023,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BinaryConditionalOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -26696,7 +27032,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BinaryConditionalOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.BinaryConditionalOperator.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.BinaryConditionalOperator.__Internal*) _0.__Instance); } @@ -26771,11 +27107,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (AddrLabelExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -26795,7 +27131,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected AddrLabelExpr(void* native, bool skipVTables = false) @@ -26808,7 +27144,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AddrLabelExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -26817,7 +27153,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AddrLabelExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.AddrLabelExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.AddrLabelExpr.__Internal*) _0.__Instance); } @@ -26891,11 +27227,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (StmtExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -26915,7 +27251,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected StmtExpr(void* native, bool skipVTables = false) @@ -26928,7 +27264,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.StmtExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -26937,7 +27273,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.StmtExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.StmtExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.StmtExpr.__Internal*) _0.__Instance); } @@ -27025,11 +27361,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ShuffleVectorExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -27049,7 +27385,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ShuffleVectorExpr(void* native, bool skipVTables = false) @@ -27062,7 +27398,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ShuffleVectorExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -27071,7 +27407,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ShuffleVectorExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ShuffleVectorExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ShuffleVectorExpr.__Internal*) _0.__Instance); } @@ -27158,11 +27494,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ConvertVectorExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -27182,7 +27518,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ConvertVectorExpr(void* native, bool skipVTables = false) @@ -27195,7 +27531,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ConvertVectorExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -27204,7 +27540,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ConvertVectorExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ConvertVectorExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ConvertVectorExpr.__Internal*) _0.__Instance); } @@ -27298,11 +27634,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ChooseExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -27322,7 +27658,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ChooseExpr(void* native, bool skipVTables = false) @@ -27335,7 +27671,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ChooseExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -27344,7 +27680,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ChooseExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ChooseExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ChooseExpr.__Internal*) _0.__Instance); } @@ -27498,11 +27834,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (GNUNullExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -27522,7 +27858,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected GNUNullExpr(void* native, bool skipVTables = false) @@ -27535,7 +27871,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.GNUNullExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -27544,7 +27880,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.GNUNullExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.GNUNullExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.GNUNullExpr.__Internal*) _0.__Instance); } @@ -27606,11 +27942,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (VAArgExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -27630,7 +27966,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected VAArgExpr(void* native, bool skipVTables = false) @@ -27643,7 +27979,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VAArgExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -27652,7 +27988,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VAArgExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.VAArgExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.VAArgExpr.__Internal*) _0.__Instance); } @@ -27762,11 +28098,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (InitListExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -27786,7 +28122,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected InitListExpr(void* native, bool skipVTables = false) @@ -27799,7 +28135,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.InitListExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -27808,7 +28144,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.InitListExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.InitListExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.InitListExpr.__Internal*) _0.__Instance); } @@ -28035,7 +28371,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.DesignatedInitExpr.Designator managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.DesignatedInitExpr.Designator managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -28048,11 +28396,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Designator)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -28072,7 +28420,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Designator(void* native, bool skipVTables = false) @@ -28086,7 +28434,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DesignatedInitExpr.Designator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -28094,7 +28442,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DesignatedInitExpr.Designator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.DesignatedInitExpr.Designator.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.DesignatedInitExpr.Designator.__Internal*) _0.__Instance); } @@ -28277,7 +28625,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.DesignatedInitExpr.FieldDesignator managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.DesignatedInitExpr.FieldDesignator managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -28290,11 +28650,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (FieldDesignator)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -28314,7 +28674,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected FieldDesignator(void* native, bool skipVTables = false) @@ -28328,7 +28688,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DesignatedInitExpr.FieldDesignator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -28336,7 +28696,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DesignatedInitExpr.FieldDesignator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.DesignatedInitExpr.FieldDesignator.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.DesignatedInitExpr.FieldDesignator.__Internal*) _0.__Instance); } @@ -28373,7 +28733,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.DesignatedInitExpr.ArrayOrRangeDesignator managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.DesignatedInitExpr.ArrayOrRangeDesignator managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -28386,11 +28758,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ArrayOrRangeDesignator)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -28410,7 +28782,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ArrayOrRangeDesignator(void* native, bool skipVTables = false) @@ -28424,7 +28796,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DesignatedInitExpr.ArrayOrRangeDesignator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -28432,7 +28804,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DesignatedInitExpr.ArrayOrRangeDesignator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.DesignatedInitExpr.ArrayOrRangeDesignator.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.DesignatedInitExpr.ArrayOrRangeDesignator.__Internal*) _0.__Instance); } @@ -28464,11 +28836,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DesignatedInitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -28488,7 +28860,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DesignatedInitExpr(void* native, bool skipVTables = false) @@ -28501,7 +28873,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DesignatedInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -28510,7 +28882,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DesignatedInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.DesignatedInitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.DesignatedInitExpr.__Internal*) _0.__Instance); } @@ -28636,11 +29008,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (NoInitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -28660,7 +29032,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected NoInitExpr(void* native, bool skipVTables = false) @@ -28673,7 +29045,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.NoInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -28682,7 +29054,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.NoInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.NoInitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.NoInitExpr.__Internal*) _0.__Instance); } } @@ -28729,11 +29101,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DesignatedInitUpdateExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -28753,7 +29125,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DesignatedInitUpdateExpr(void* native, bool skipVTables = false) @@ -28766,7 +29138,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DesignatedInitUpdateExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -28775,7 +29147,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DesignatedInitUpdateExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.DesignatedInitUpdateExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.DesignatedInitUpdateExpr.__Internal*) _0.__Instance); } @@ -28850,11 +29222,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ArrayInitLoopExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -28874,7 +29246,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ArrayInitLoopExpr(void* native, bool skipVTables = false) @@ -28887,7 +29259,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ArrayInitLoopExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -28896,7 +29268,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ArrayInitLoopExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ArrayInitLoopExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ArrayInitLoopExpr.__Internal*) _0.__Instance); } @@ -28969,11 +29341,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ArrayInitIndexExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -28993,7 +29365,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ArrayInitIndexExpr(void* native, bool skipVTables = false) @@ -29006,7 +29378,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ArrayInitIndexExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -29015,7 +29387,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ArrayInitIndexExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ArrayInitIndexExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ArrayInitIndexExpr.__Internal*) _0.__Instance); } } @@ -29060,11 +29432,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ImplicitValueInitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -29084,7 +29456,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ImplicitValueInitExpr(void* native, bool skipVTables = false) @@ -29097,7 +29469,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ImplicitValueInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -29106,7 +29478,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ImplicitValueInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ImplicitValueInitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ImplicitValueInitExpr.__Internal*) _0.__Instance); } } @@ -29154,11 +29526,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ParenListExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -29178,7 +29550,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ParenListExpr(void* native, bool skipVTables = false) @@ -29191,7 +29563,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ParenListExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -29200,7 +29572,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ParenListExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ParenListExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ParenListExpr.__Internal*) _0.__Instance); } @@ -29292,11 +29664,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (GenericSelectionExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -29316,7 +29688,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected GenericSelectionExpr(void* native, bool skipVTables = false) @@ -29329,7 +29701,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.GenericSelectionExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -29338,7 +29710,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.GenericSelectionExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.GenericSelectionExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.GenericSelectionExpr.__Internal*) _0.__Instance); } @@ -29494,11 +29866,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ExtVectorElementExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -29518,7 +29890,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ExtVectorElementExpr(void* native, bool skipVTables = false) @@ -29531,7 +29903,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ExtVectorElementExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -29540,7 +29912,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ExtVectorElementExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ExtVectorElementExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ExtVectorElementExpr.__Internal*) _0.__Instance); } @@ -29653,11 +30025,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (BlockExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -29677,7 +30049,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected BlockExpr(void* native, bool skipVTables = false) @@ -29690,7 +30062,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BlockExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -29699,7 +30071,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BlockExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.BlockExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.BlockExpr.__Internal*) _0.__Instance); } @@ -29774,11 +30146,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (AsTypeExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -29798,7 +30170,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected AsTypeExpr(void* native, bool skipVTables = false) @@ -29811,7 +30183,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AsTypeExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -29820,7 +30192,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AsTypeExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.AsTypeExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.AsTypeExpr.__Internal*) _0.__Instance); } @@ -29909,11 +30281,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (PseudoObjectExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -29933,7 +30305,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected PseudoObjectExpr(void* native, bool skipVTables = false) @@ -29946,7 +30318,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PseudoObjectExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -29955,7 +30327,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PseudoObjectExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.PseudoObjectExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.PseudoObjectExpr.__Internal*) _0.__Instance); } @@ -30119,11 +30491,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (AtomicExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -30143,7 +30515,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected AtomicExpr(void* native, bool skipVTables = false) @@ -30156,7 +30528,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AtomicExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -30165,7 +30537,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AtomicExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.AtomicExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.AtomicExpr.__Internal*) _0.__Instance); } @@ -30414,11 +30786,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TypoExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -30438,7 +30810,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TypoExpr(void* native, bool skipVTables = false) @@ -30451,7 +30823,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypoExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -30460,7 +30832,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypoExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.TypoExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.TypoExpr.__Internal*) _0.__Instance); } } @@ -30521,11 +30893,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXOperatorCallExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -30545,7 +30917,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXOperatorCallExpr(void* native, bool skipVTables = false) @@ -30558,7 +30930,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXOperatorCallExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -30567,7 +30939,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXOperatorCallExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -30696,11 +31068,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXMemberCallExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -30720,7 +31092,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXMemberCallExpr(void* native, bool skipVTables = false) @@ -30733,7 +31105,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXMemberCallExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -30742,7 +31114,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXMemberCallExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -30846,11 +31218,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CUDAKernelCallExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -30870,7 +31242,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CUDAKernelCallExpr(void* native, bool skipVTables = false) @@ -30883,7 +31255,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CUDAKernelCallExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -30892,7 +31264,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CUDAKernelCallExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -30985,11 +31357,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXNamedCastExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -31009,7 +31381,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXNamedCastExpr(void* native, bool skipVTables = false) @@ -31022,7 +31394,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXNamedCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -31031,7 +31403,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXNamedCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -31040,7 +31412,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXNamedCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXNamedCastExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXNamedCastExpr.__Internal*) _0.__Instance); if (_0.__castName_OwnsNativeMemory) this.CastName = _0.CastName; @@ -31170,11 +31542,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXStaticCastExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -31194,7 +31566,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXStaticCastExpr(void* native, bool skipVTables = false) @@ -31207,7 +31579,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXStaticCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -31216,7 +31588,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXStaticCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXStaticCastExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXStaticCastExpr.__Internal*) _0.__Instance); } } @@ -31274,11 +31646,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXDynamicCastExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -31298,7 +31670,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXDynamicCastExpr(void* native, bool skipVTables = false) @@ -31311,7 +31683,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXDynamicCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -31320,7 +31692,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXDynamicCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXDynamicCastExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXDynamicCastExpr.__Internal*) _0.__Instance); } @@ -31390,11 +31762,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXReinterpretCastExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -31414,7 +31786,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXReinterpretCastExpr(void* native, bool skipVTables = false) @@ -31427,7 +31799,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXReinterpretCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -31436,7 +31808,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXReinterpretCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXReinterpretCastExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXReinterpretCastExpr.__Internal*) _0.__Instance); } } @@ -31493,11 +31865,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXConstCastExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -31517,7 +31889,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXConstCastExpr(void* native, bool skipVTables = false) @@ -31530,7 +31902,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXConstCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -31539,7 +31911,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXConstCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXConstCastExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXConstCastExpr.__Internal*) _0.__Instance); } } @@ -31609,11 +31981,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (UserDefinedLiteral)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -31633,7 +32005,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected UserDefinedLiteral(void* native, bool skipVTables = false) @@ -31646,7 +32018,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UserDefinedLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -31655,7 +32027,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UserDefinedLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -31761,11 +32133,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXBoolLiteralExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -31785,7 +32157,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXBoolLiteralExpr(void* native, bool skipVTables = false) @@ -31798,7 +32170,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXBoolLiteralExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -31807,7 +32179,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXBoolLiteralExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXBoolLiteralExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXBoolLiteralExpr.__Internal*) _0.__Instance); } @@ -31879,11 +32251,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXNullPtrLiteralExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -31903,7 +32275,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXNullPtrLiteralExpr(void* native, bool skipVTables = false) @@ -31916,7 +32288,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXNullPtrLiteralExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -31925,7 +32297,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXNullPtrLiteralExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXNullPtrLiteralExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXNullPtrLiteralExpr.__Internal*) _0.__Instance); } @@ -31984,11 +32356,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXStdInitializerListExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -32008,7 +32380,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXStdInitializerListExpr(void* native, bool skipVTables = false) @@ -32021,7 +32393,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXStdInitializerListExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -32030,7 +32402,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXStdInitializerListExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXStdInitializerListExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXStdInitializerListExpr.__Internal*) _0.__Instance); } @@ -32092,11 +32464,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXTypeidExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -32116,7 +32488,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXTypeidExpr(void* native, bool skipVTables = false) @@ -32129,7 +32501,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXTypeidExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -32138,7 +32510,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXTypeidExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXTypeidExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXTypeidExpr.__Internal*) _0.__Instance); } @@ -32228,11 +32600,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (MSPropertyRefExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -32252,7 +32624,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected MSPropertyRefExpr(void* native, bool skipVTables = false) @@ -32265,7 +32637,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MSPropertyRefExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -32274,7 +32646,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MSPropertyRefExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.MSPropertyRefExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.MSPropertyRefExpr.__Internal*) _0.__Instance); } @@ -32375,11 +32747,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (MSPropertySubscriptExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -32399,7 +32771,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected MSPropertySubscriptExpr(void* native, bool skipVTables = false) @@ -32412,7 +32784,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MSPropertySubscriptExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -32421,7 +32793,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MSPropertySubscriptExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.MSPropertySubscriptExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.MSPropertySubscriptExpr.__Internal*) _0.__Instance); } @@ -32513,11 +32885,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXUuidofExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -32537,7 +32909,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXUuidofExpr(void* native, bool skipVTables = false) @@ -32550,7 +32922,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXUuidofExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -32559,7 +32931,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXUuidofExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -32665,11 +33037,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXThisExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -32689,7 +33061,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXThisExpr(void* native, bool skipVTables = false) @@ -32702,7 +33074,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXThisExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -32711,7 +33083,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXThisExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXThisExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXThisExpr.__Internal*) _0.__Instance); } @@ -32785,11 +33157,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXThrowExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -32809,7 +33181,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXThrowExpr(void* native, bool skipVTables = false) @@ -32822,7 +33194,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXThrowExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -32831,7 +33203,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXThrowExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXThrowExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXThrowExpr.__Internal*) _0.__Instance); } @@ -32918,11 +33290,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXDefaultArgExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -32942,7 +33314,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXDefaultArgExpr(void* native, bool skipVTables = false) @@ -32955,7 +33327,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXDefaultArgExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -32964,7 +33336,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXDefaultArgExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXDefaultArgExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXDefaultArgExpr.__Internal*) _0.__Instance); } @@ -33038,11 +33410,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXDefaultInitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -33062,7 +33434,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXDefaultInitExpr(void* native, bool skipVTables = false) @@ -33075,7 +33447,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXDefaultInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -33084,7 +33456,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXDefaultInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXDefaultInitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXDefaultInitExpr.__Internal*) _0.__Instance); } @@ -33158,11 +33530,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXBindTemporaryExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -33182,7 +33554,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXBindTemporaryExpr(void* native, bool skipVTables = false) @@ -33195,7 +33567,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXBindTemporaryExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -33204,7 +33576,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXBindTemporaryExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXBindTemporaryExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXBindTemporaryExpr.__Internal*) _0.__Instance); } @@ -33298,11 +33670,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXConstructExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -33322,7 +33694,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXConstructExpr(void* native, bool skipVTables = false) @@ -33335,7 +33707,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXConstructExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -33344,7 +33716,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXConstructExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -33353,7 +33725,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXConstructExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -33561,11 +33933,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXInheritedCtorInitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -33585,7 +33957,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXInheritedCtorInitExpr(void* native, bool skipVTables = false) @@ -33598,7 +33970,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXInheritedCtorInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -33607,7 +33979,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXInheritedCtorInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXInheritedCtorInitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXInheritedCtorInitExpr.__Internal*) _0.__Instance); } @@ -33702,11 +34074,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXFunctionalCastExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -33726,7 +34098,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXFunctionalCastExpr(void* native, bool skipVTables = false) @@ -33739,7 +34111,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXFunctionalCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -33748,7 +34120,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXFunctionalCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXFunctionalCastExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXFunctionalCastExpr.__Internal*) _0.__Instance); } @@ -33844,11 +34216,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXTemporaryObjectExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -33868,7 +34240,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXTemporaryObjectExpr(void* native, bool skipVTables = false) @@ -33881,7 +34253,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXTemporaryObjectExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -33890,7 +34262,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXTemporaryObjectExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -33978,11 +34350,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (LambdaExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -34002,7 +34374,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected LambdaExpr(void* native, bool skipVTables = false) @@ -34015,7 +34387,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.LambdaExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -34024,7 +34396,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.LambdaExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -34239,11 +34611,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXScalarValueInitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -34263,7 +34635,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXScalarValueInitExpr(void* native, bool skipVTables = false) @@ -34276,7 +34648,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXScalarValueInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -34285,7 +34657,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXScalarValueInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXScalarValueInitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXScalarValueInitExpr.__Internal*) _0.__Instance); } @@ -34380,11 +34752,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXNewExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -34404,7 +34776,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXNewExpr(void* native, bool skipVTables = false) @@ -34417,7 +34789,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXNewExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -34426,7 +34798,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXNewExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -34719,11 +35091,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXDeleteExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -34743,7 +35115,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXDeleteExpr(void* native, bool skipVTables = false) @@ -34756,7 +35128,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXDeleteExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -34765,7 +35137,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXDeleteExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXDeleteExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXDeleteExpr.__Internal*) _0.__Instance); } @@ -34900,11 +35272,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXPseudoDestructorExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -34924,7 +35296,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXPseudoDestructorExpr(void* native, bool skipVTables = false) @@ -34937,7 +35309,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXPseudoDestructorExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -34946,7 +35318,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXPseudoDestructorExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXPseudoDestructorExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXPseudoDestructorExpr.__Internal*) _0.__Instance); } @@ -35101,11 +35473,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TypeTraitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -35125,7 +35497,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TypeTraitExpr(void* native, bool skipVTables = false) @@ -35138,7 +35510,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypeTraitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -35147,7 +35519,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypeTraitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.TypeTraitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.TypeTraitExpr.__Internal*) _0.__Instance); } @@ -35221,11 +35593,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ArrayTypeTraitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -35245,7 +35617,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ArrayTypeTraitExpr(void* native, bool skipVTables = false) @@ -35258,7 +35630,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ArrayTypeTraitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -35267,7 +35639,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ArrayTypeTraitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ArrayTypeTraitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ArrayTypeTraitExpr.__Internal*) _0.__Instance); } @@ -35356,11 +35728,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ExpressionTraitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -35380,7 +35752,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ExpressionTraitExpr(void* native, bool skipVTables = false) @@ -35393,7 +35765,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ExpressionTraitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -35402,7 +35774,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ExpressionTraitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ExpressionTraitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ExpressionTraitExpr.__Internal*) _0.__Instance); } @@ -35490,7 +35862,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.OverloadExpr.FindResult managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.OverloadExpr.FindResult managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -35503,11 +35887,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (FindResult)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -35527,7 +35911,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected FindResult(void* native, bool skipVTables = false) @@ -35541,7 +35925,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.OverloadExpr.FindResult.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -35549,7 +35933,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.OverloadExpr.FindResult.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.OverloadExpr.FindResult.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.OverloadExpr.FindResult.__Internal*) _0.__Instance); } @@ -35581,11 +35965,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (OverloadExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -35605,7 +35989,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected OverloadExpr(void* native, bool skipVTables = false) @@ -35618,7 +36002,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.OverloadExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -35627,7 +36011,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.OverloadExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -35636,7 +36020,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.OverloadExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.OverloadExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.OverloadExpr.__Internal*) _0.__Instance); } @@ -35800,11 +36184,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (UnresolvedLookupExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -35824,7 +36208,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected UnresolvedLookupExpr(void* native, bool skipVTables = false) @@ -35837,7 +36221,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnresolvedLookupExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -35846,7 +36230,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnresolvedLookupExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.UnresolvedLookupExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.UnresolvedLookupExpr.__Internal*) _0.__Instance); } @@ -35924,11 +36308,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DependentScopeDeclRefExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -35948,7 +36332,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DependentScopeDeclRefExpr(void* native, bool skipVTables = false) @@ -35961,7 +36345,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DependentScopeDeclRefExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -35970,7 +36354,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DependentScopeDeclRefExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.DependentScopeDeclRefExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.DependentScopeDeclRefExpr.__Internal*) _0.__Instance); } @@ -36109,11 +36493,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ExprWithCleanups)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -36133,7 +36517,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ExprWithCleanups(void* native, bool skipVTables = false) @@ -36146,7 +36530,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ExprWithCleanups.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -36155,7 +36539,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ExprWithCleanups.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ExprWithCleanups.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ExprWithCleanups.__Internal*) _0.__Instance); } @@ -36247,11 +36631,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXUnresolvedConstructExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -36271,7 +36655,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXUnresolvedConstructExpr(void* native, bool skipVTables = false) @@ -36284,7 +36668,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXUnresolvedConstructExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -36293,7 +36677,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXUnresolvedConstructExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -36467,11 +36851,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXDependentScopeMemberExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -36491,7 +36875,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXDependentScopeMemberExpr(void* native, bool skipVTables = false) @@ -36504,7 +36888,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXDependentScopeMemberExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -36513,7 +36897,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXDependentScopeMemberExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXDependentScopeMemberExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXDependentScopeMemberExpr.__Internal*) _0.__Instance); } @@ -36746,11 +37130,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (UnresolvedMemberExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -36770,7 +37154,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected UnresolvedMemberExpr(void* native, bool skipVTables = false) @@ -36783,7 +37167,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnresolvedMemberExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -36792,7 +37176,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnresolvedMemberExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.UnresolvedMemberExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.UnresolvedMemberExpr.__Internal*) _0.__Instance); } @@ -36933,11 +37317,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXNoexceptExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -36957,7 +37341,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXNoexceptExpr(void* native, bool skipVTables = false) @@ -36970,7 +37354,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXNoexceptExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -36979,7 +37363,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXNoexceptExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXNoexceptExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXNoexceptExpr.__Internal*) _0.__Instance); } @@ -37053,11 +37437,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (PackExpansionExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -37077,7 +37461,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected PackExpansionExpr(void* native, bool skipVTables = false) @@ -37090,7 +37474,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PackExpansionExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -37099,7 +37483,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PackExpansionExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.PackExpansionExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.PackExpansionExpr.__Internal*) _0.__Instance); } @@ -37177,11 +37561,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (SizeOfPackExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -37201,7 +37585,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected SizeOfPackExpr(void* native, bool skipVTables = false) @@ -37214,7 +37598,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SizeOfPackExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -37223,7 +37607,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SizeOfPackExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.SizeOfPackExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.SizeOfPackExpr.__Internal*) _0.__Instance); } @@ -37349,11 +37733,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (SubstNonTypeTemplateParmExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -37373,7 +37757,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected SubstNonTypeTemplateParmExpr(void* native, bool skipVTables = false) @@ -37386,7 +37770,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SubstNonTypeTemplateParmExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -37395,7 +37779,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SubstNonTypeTemplateParmExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.SubstNonTypeTemplateParmExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.SubstNonTypeTemplateParmExpr.__Internal*) _0.__Instance); } @@ -37469,11 +37853,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (SubstNonTypeTemplateParmPackExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -37493,7 +37877,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected SubstNonTypeTemplateParmPackExpr(void* native, bool skipVTables = false) @@ -37506,7 +37890,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SubstNonTypeTemplateParmPackExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -37515,7 +37899,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SubstNonTypeTemplateParmPackExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.SubstNonTypeTemplateParmPackExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.SubstNonTypeTemplateParmPackExpr.__Internal*) _0.__Instance); } @@ -37590,11 +37974,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (FunctionParmPackExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -37614,7 +37998,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected FunctionParmPackExpr(void* native, bool skipVTables = false) @@ -37627,7 +38011,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FunctionParmPackExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -37636,7 +38020,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FunctionParmPackExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.FunctionParmPackExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.FunctionParmPackExpr.__Internal*) _0.__Instance); } @@ -37716,7 +38100,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.MaterializeTemporaryExpr.ExtraState managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.MaterializeTemporaryExpr.ExtraState managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -37729,11 +38125,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ExtraState)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -37753,7 +38149,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ExtraState(void* native, bool skipVTables = false) @@ -37767,7 +38163,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MaterializeTemporaryExpr.ExtraState.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -37775,7 +38171,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MaterializeTemporaryExpr.ExtraState.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.MaterializeTemporaryExpr.ExtraState.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.MaterializeTemporaryExpr.ExtraState.__Internal*) _0.__Instance); } @@ -37807,11 +38203,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (MaterializeTemporaryExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -37831,7 +38227,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected MaterializeTemporaryExpr(void* native, bool skipVTables = false) @@ -37844,7 +38240,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MaterializeTemporaryExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -37853,7 +38249,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MaterializeTemporaryExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.MaterializeTemporaryExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.MaterializeTemporaryExpr.__Internal*) _0.__Instance); } @@ -37960,11 +38356,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXFoldExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -37984,7 +38380,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXFoldExpr(void* native, bool skipVTables = false) @@ -37997,7 +38393,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXFoldExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -38006,7 +38402,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXFoldExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXFoldExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXFoldExpr.__Internal*) _0.__Instance); } @@ -38177,11 +38573,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CoroutineSuspendExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -38201,7 +38597,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CoroutineSuspendExpr(void* native, bool skipVTables = false) @@ -38214,7 +38610,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoroutineSuspendExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -38223,7 +38619,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoroutineSuspendExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -38232,7 +38628,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoroutineSuspendExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CoroutineSuspendExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CoroutineSuspendExpr.__Internal*) _0.__Instance); } @@ -38373,11 +38769,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CoawaitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -38397,7 +38793,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CoawaitExpr(void* native, bool skipVTables = false) @@ -38410,7 +38806,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoawaitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -38419,7 +38815,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoawaitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CoawaitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CoawaitExpr.__Internal*) _0.__Instance); } @@ -38494,11 +38890,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DependentCoawaitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -38518,7 +38914,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DependentCoawaitExpr(void* native, bool skipVTables = false) @@ -38531,7 +38927,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DependentCoawaitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -38540,7 +38936,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DependentCoawaitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.DependentCoawaitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.DependentCoawaitExpr.__Internal*) _0.__Instance); } @@ -38633,11 +39029,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CoyieldExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -38657,7 +39053,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CoyieldExpr(void* native, bool skipVTables = false) @@ -38670,7 +39066,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoyieldExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -38679,7 +39075,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoyieldExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CoyieldExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CoyieldExpr.__Internal*) _0.__Instance); } @@ -38779,7 +39175,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.ParserTargetInfo managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.ParserTargetInfo managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -38792,11 +39200,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ParserTargetInfo)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -38816,7 +39224,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ParserTargetInfo(void* native, bool skipVTables = false) @@ -38830,7 +39238,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.ParserTargetInfo.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -38838,7 +39246,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.ParserTargetInfo.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -39439,7 +39847,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.Parser managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.Parser managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -39452,11 +39872,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Parser)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -39476,7 +39896,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Parser(void* native, bool skipVTables = false) @@ -39489,7 +39909,7 @@ namespace CppSharp public unsafe partial class CppParserOptions : IDisposable { - [StructLayout(LayoutKind.Sequential, Size = 160)] + [StructLayout(LayoutKind.Sequential, Size = 172)] public partial struct __Internal { internal global::Std.Vector.__Internalc__N_std_S_vector____N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C___N_std_S_allocator__S0_ Arguments; @@ -39500,6 +39920,7 @@ namespace CppSharp internal global::Std.Vector.__Internalc__N_std_S_vector____N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C___N_std_S_allocator__S0_ Defines; internal global::Std.Vector.__Internalc__N_std_S_vector____N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C___N_std_S_allocator__S0_ Undefines; internal global::Std.Vector.__Internalc__N_std_S_vector____N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C___N_std_S_allocator__S0_ SupportedStdTypes; + internal global::Std.Vector.__Internalc__N_std_S_vector____N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C___N_std_S_allocator__S0_ SupportedFunctionTemplates; internal __IntPtr ASTContext; internal int toolSetToUse; internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C targetTriple; @@ -39594,6 +40015,15 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser.dll", EntryPoint = "?clearSupportedStdTypes@CppParserOptions@CppParser@CppSharp@@QAEXXZ", CallingConvention = __CallingConvention.ThisCall)] internal static extern void ClearSupportedStdTypes(__IntPtr __instance); + [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser.dll", EntryPoint = "?getSupportedFunctionTemplates@CppParserOptions@CppParser@CppSharp@@QAEPBDI@Z", CallingConvention = __CallingConvention.ThisCall)] + internal static extern __IntPtr GetSupportedFunctionTemplates(__IntPtr __instance, uint i); + + [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser.dll", EntryPoint = "?addSupportedFunctionTemplates@CppParserOptions@CppParser@CppSharp@@QAEXPBD@Z", CallingConvention = __CallingConvention.ThisCall)] + internal static extern void AddSupportedFunctionTemplates(__IntPtr __instance, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(CppSharp.Runtime.UTF8Marshaller))] string s); + + [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser.dll", EntryPoint = "?clearSupportedFunctionTemplates@CppParserOptions@CppParser@CppSharp@@QAEXXZ", CallingConvention = __CallingConvention.ThisCall)] + internal static extern void ClearSupportedFunctionTemplates(__IntPtr __instance); + [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser.dll", EntryPoint = "?getClangVersion@CppParserOptions@CppParser@CppSharp@@QAE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ", CallingConvention = __CallingConvention.ThisCall)] internal static extern void GetClangVersion(__IntPtr __instance, __IntPtr @return); @@ -39620,11 +40050,26 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser.dll", EntryPoint = "?getSupportedStdTypesCount@CppParserOptions@CppParser@CppSharp@@QAEIXZ", CallingConvention = __CallingConvention.ThisCall)] internal static extern uint GetSupportedStdTypesCount(__IntPtr __instance); + + [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser.dll", EntryPoint = "?getSupportedFunctionTemplatesCount@CppParserOptions@CppParser@CppSharp@@QAEIXZ", CallingConvention = __CallingConvention.ThisCall)] + internal static extern uint GetSupportedFunctionTemplatesCount(__IntPtr __instance); } public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.CppParserOptions managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.CppParserOptions managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -39637,11 +40082,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CppParserOptions)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -39661,7 +40106,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CppParserOptions(void* native, bool skipVTables = false) @@ -39675,7 +40120,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.CppParserOptions.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -39683,7 +40128,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.CppParserOptions.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -39838,6 +40283,22 @@ namespace CppSharp __Internal.ClearSupportedStdTypes(__Instance); } + public string GetSupportedFunctionTemplates(uint i) + { + var __ret = __Internal.GetSupportedFunctionTemplates(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + } + + public void AddSupportedFunctionTemplates(string s) + { + __Internal.AddSupportedFunctionTemplates(__Instance, s); + } + + public void ClearSupportedFunctionTemplates() + { + __Internal.ClearSupportedFunctionTemplates(__Instance); + } + public global::CppSharp.Parser.AST.ASTContext ASTContext { get @@ -40067,6 +40528,15 @@ namespace CppSharp return __ret; } } + + public uint SupportedFunctionTemplatesCount + { + get + { + var __ret = __Internal.GetSupportedFunctionTemplatesCount(__Instance); + return __ret; + } + } } public unsafe partial class CppLinkerOptions : IDisposable @@ -40126,7 +40596,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.CppLinkerOptions managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.CppLinkerOptions managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -40139,11 +40621,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CppLinkerOptions)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -40163,7 +40645,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CppLinkerOptions(void* native, bool skipVTables = false) @@ -40177,7 +40659,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.CppLinkerOptions.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -40185,7 +40667,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.CppLinkerOptions.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -40311,7 +40793,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.ParserDiagnostic managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.ParserDiagnostic managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -40324,11 +40818,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ParserDiagnostic)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -40348,7 +40842,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ParserDiagnostic(void* native, bool skipVTables = false) @@ -40362,7 +40856,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.ParserDiagnostic.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -40370,7 +40864,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.ParserDiagnostic.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -40511,7 +41005,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.ParserResult managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.ParserResult managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -40524,11 +41030,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ParserResult)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -40548,7 +41054,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ParserResult(void* native, bool skipVTables = false) @@ -40562,7 +41068,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.ParserResult.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -40570,7 +41076,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.ParserResult.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -40712,7 +41218,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.ClangParser managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.ClangParser managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -40725,11 +41243,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ClangParser)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -40749,7 +41267,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ClangParser(void* native, bool skipVTables = false) @@ -40763,14 +41281,14 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.ClangParser.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } public ClangParser(global::CppSharp.Parser.ClangParser _0) { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.ClangParser.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.ClangParser.__Internal*) __Instance) = *((global::CppSharp.Parser.ClangParser.__Internal*) _0.__Instance); } @@ -40851,13 +41369,492 @@ namespace CppSharp namespace Std { - namespace Pair + namespace Vector + { + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_NativeLibrary___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_NativeLibrary___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector____N_CppSharp_N_CppParser_S_ParserDiagnostic___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_S_ParserDiagnostic___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_HTMLStartTagComment_S_Attribute___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_N_AST_S_HTMLStartTagComment_S_Attribute___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_InlineCommandComment_S_Argument___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_N_AST_S_InlineCommandComment_S_Argument___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_VerbatimBlockLineComment___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_VerbatimBlockLineComment___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_BlockCommandComment_S_Argument___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_N_AST_S_BlockCommandComment_S_Argument___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_InlineContentComment___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_InlineContentComment___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Expr___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Expr___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Stmt___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Stmt___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TranslationUnit___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_TranslationUnit___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_MacroDefinition___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_MacroDefinition___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_VarTemplateSpecialization___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_VarTemplateSpecialization___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_ExpressionObsolete___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_ExpressionObsolete___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_ClassTemplateSpecialization___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_ClassTemplateSpecialization___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Enumeration_S_Item___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Enumeration_S_Item___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_LayoutBase___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_N_AST_S_LayoutBase___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_LayoutField___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_N_AST_S_LayoutField___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_VTableComponent___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_N_AST_S_VTableComponent___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_VFTableInfo___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_N_AST_S_VFTableInfo___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_AccessSpecifierDecl___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_AccessSpecifierDecl___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_TemplateArgument___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_N_AST_S_TemplateArgument___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_FunctionTemplateSpecialization___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_FunctionTemplateSpecialization___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Parameter___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Parameter___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Method___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Method___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Field___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Field___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_BaseClassSpecifier___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_BaseClassSpecifier___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Friend___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Friend___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Variable___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Variable___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TypeAlias___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_TypeAlias___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TypedefDecl___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_TypedefDecl___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Template___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Template___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Class___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Class___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Function___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Function___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Enumeration___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Enumeration___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Namespace___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Namespace___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_BlockContentComment___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_BlockContentComment___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + } + +} +namespace Std +{ + namespace CompressedPair + { + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_NativeLibrary___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_S_ParserDiagnostic___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_N_AST_S_HTMLStartTagComment_S_Attribute___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_N_AST_S_InlineCommandComment_S_Argument___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_VerbatimBlockLineComment___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_N_AST_S_BlockCommandComment_S_Argument___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_InlineContentComment___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Expr___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Stmt___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_TranslationUnit___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_MacroDefinition___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_VarTemplateSpecialization___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_ExpressionObsolete___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_ClassTemplateSpecialization___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Namespace___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Enumeration___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Enumeration_S_Item___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Function___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Class___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_N_AST_S_LayoutBase___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_N_AST_S_LayoutField___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_N_AST_S_VFTableInfo___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_N_AST_S_VTableComponent___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_AccessSpecifierDecl___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Method___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_N_AST_S_TemplateArgument___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_FunctionTemplateSpecialization___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Parameter___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Field___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_BaseClassSpecifier___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 8, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_std_S__Tree_node____N_std_S_pair__1__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C____N_CppSharp_N_CppParser_N_AST_S_Declaration__v___N_std_S__Tree_val____N_std_S__Tree_simple_types__S2__Vb1 + { + internal global::Std.TreeVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 8, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_less____N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C___N_std_S__Compressed_pair____N_std_S_allocator____N_std_S__Tree_node____N_std_S_pair__1S1_____N_CppSharp_N_CppParser_N_AST_S_Declaration__v___N_std_S__Tree_val____N_std_S__Tree_simple_types__S7__Vb1_Vb1 + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_std_S__Tree_node____N_std_S_pair__1__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C____N_CppSharp_N_CppParser_N_AST_S_Declaration__v___N_std_S__Tree_val____N_std_S__Tree_simple_types__S2__Vb1 _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Friend___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Variable___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_TypeAlias___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_TypedefDecl___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Template___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_BlockContentComment___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + } + +} +namespace Std +{ + namespace Map { - [StructLayout(LayoutKind.Sequential, Size = 28, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_pair__1__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C____N_CppSharp_N_CppParser_N_AST_S_Declaration + [StructLayout(LayoutKind.Sequential, Size = 8, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_map____N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_less__S0____N_std_S_allocator____N_std_S_pair__1S0__S3_ { - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C first; - internal __IntPtr second; + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_less____N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C___N_std_S__Compressed_pair____N_std_S_allocator____N_std_S__Tree_node____N_std_S_pair__1S1_____N_CppSharp_N_CppParser_N_AST_S_Declaration__v___N_std_S__Tree_val____N_std_S__Tree_simple_types__S7__Vb1_Vb1 _Mypair; } } } diff --git a/src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/Std.cs b/src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/Std.cs index df330aa1..a6427be1 100644 --- a/src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/Std.cs +++ b/src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/Std.cs @@ -19,245 +19,17 @@ namespace Std { namespace Vector { - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_BlockContentComment___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_BlockContentComment___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Namespace___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Namespace___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Enumeration___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Enumeration___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Function___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Function___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Class___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Class___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Template___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Template___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TypedefDecl___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_TypedefDecl___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TypeAlias___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_TypeAlias___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Variable___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Variable___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Friend___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Friend___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_BaseClassSpecifier___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_BaseClassSpecifier___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Field___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Field___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Method___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Method___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Parameter___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Parameter___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_FunctionTemplateSpecialization___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_FunctionTemplateSpecialization___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_TemplateArgument___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_N_AST_S_TemplateArgument___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_AccessSpecifierDecl___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_AccessSpecifierDecl___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_VFTableInfo___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_N_AST_S_VFTableInfo___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_VTableComponent___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_N_AST_S_VTableComponent___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_LayoutField___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_N_AST_S_LayoutField___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_LayoutBase___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_N_AST_S_LayoutBase___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Enumeration_S_Item___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Enumeration_S_Item___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] public unsafe partial struct __Internalc__N_std_S_vector____N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C___N_std_S_allocator__S0_ { internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; } - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_ClassTemplateSpecialization___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_ClassTemplateSpecialization___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_ExpressionObsolete___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_ExpressionObsolete___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_VarTemplateSpecialization___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_VarTemplateSpecialization___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_MacroDefinition___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_MacroDefinition___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TranslationUnit___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_TranslationUnit___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Stmt___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Stmt___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Expr___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Expr___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_InlineContentComment___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_InlineContentComment___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_BlockCommandComment_S_Argument___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_N_AST_S_BlockCommandComment_S_Argument___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] public unsafe partial struct __Internalc__N_std_S_vector__i___N_std_S_allocator__i { internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator__i___N_std_S__Vector_val____N_std_S__Simple_types__i_Vb1 _Mypair; } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_VerbatimBlockLineComment___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_VerbatimBlockLineComment___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_InlineCommandComment_S_Argument___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_N_AST_S_InlineCommandComment_S_Argument___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_HTMLStartTagComment_S_Attribute___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_N_AST_S_HTMLStartTagComment_S_Attribute___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector____N_CppSharp_N_CppParser_S_ParserDiagnostic___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_S_ParserDiagnostic___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_NativeLibrary___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_NativeLibrary___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } } namespace VectorVal @@ -279,163 +51,7 @@ namespace Std [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator__C___N_std_S__String_val____N_std_S__Simple_types__C_Vb1 { - internal global::Std.StringVal.__Internalc__N_std_S__String_val____N_std_S__Simple_types__C _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_BlockContentComment___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Template___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_TypedefDecl___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_TypeAlias___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Variable___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Friend___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 8, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_less____N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C___N_std_S__Compressed_pair____N_std_S_allocator____N_std_S__Tree_node____N_std_S_pair__1S1_____N_CppSharp_N_CppParser_N_AST_S_Declaration__v___N_std_S__Tree_val____N_std_S__Tree_simple_types__S7__Vb1_Vb1 - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_std_S__Tree_node____N_std_S_pair__1__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C____N_CppSharp_N_CppParser_N_AST_S_Declaration__v___N_std_S__Tree_val____N_std_S__Tree_simple_types__S2__Vb1 _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 8, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_std_S__Tree_node____N_std_S_pair__1__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C____N_CppSharp_N_CppParser_N_AST_S_Declaration__v___N_std_S__Tree_val____N_std_S__Tree_simple_types__S2__Vb1 - { - internal global::Std.TreeVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_BaseClassSpecifier___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Field___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Parameter___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_FunctionTemplateSpecialization___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_N_AST_S_TemplateArgument___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Method___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_AccessSpecifierDecl___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_N_AST_S_VTableComponent___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_N_AST_S_VFTableInfo___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_N_AST_S_LayoutField___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_N_AST_S_LayoutBase___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Class___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Function___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Enumeration_S_Item___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Enumeration___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Namespace___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; + internal global::Std.StringVal.__Internal _Myval2; } [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] @@ -444,95 +60,11 @@ namespace Std internal global::Std.VectorVal.__Internal _Myval2; } - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_ClassTemplateSpecialization___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_ExpressionObsolete___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_VarTemplateSpecialization___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_MacroDefinition___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_TranslationUnit___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Stmt___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Expr___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_InlineContentComment___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_N_AST_S_BlockCommandComment_S_Argument___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator__i___N_std_S__Vector_val____N_std_S__Simple_types__i_Vb1 { internal global::Std.VectorVal.__Internal _Myval2; } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_VerbatimBlockLineComment___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_N_AST_S_InlineCommandComment_S_Argument___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_N_AST_S_HTMLStartTagComment_S_Attribute___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_S_ParserDiagnostic___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 12, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_NativeLibrary___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } } namespace Allocator @@ -549,7 +81,19 @@ namespace Std { public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary> NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary>(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary> NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary>(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::Std.Allocator<_Ty> managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::Std.Allocator<_Ty> managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -562,11 +106,11 @@ namespace Std { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Allocator<_Ty>)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -586,7 +130,7 @@ namespace Std : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Allocator(void* native, bool skipVTables = false) @@ -603,7 +147,7 @@ namespace Std { __Instance = Marshal.AllocHGlobal(sizeof(global::Std.Allocator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); global::Std.Allocator.__Internal.ctorc__N_std_S_allocator__C(__Instance); return; } @@ -645,14 +189,6 @@ namespace Std namespace Std { - namespace Map - { - [StructLayout(LayoutKind.Sequential, Size = 8, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_map____N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_less__S0____N_std_S_allocator____N_std_S_pair__1S0__S3_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_less____N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C___N_std_S__Compressed_pair____N_std_S_allocator____N_std_S__Tree_node____N_std_S_pair__1S1_____N_CppSharp_N_CppParser_N_AST_S_Declaration__v___N_std_S__Tree_val____N_std_S__Tree_simple_types__S7__Vb1_Vb1 _Mypair; - } - } } namespace Std @@ -689,7 +225,19 @@ namespace Std { public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary> NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary>(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary> NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary>(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::Std.BasicString<_Elem, _Traits, _Alloc> managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::Std.BasicString<_Elem, _Traits, _Alloc> managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -702,11 +250,11 @@ namespace Std { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (BasicString<_Elem, _Traits, _Alloc>)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -726,7 +274,7 @@ namespace Std : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected BasicString(void* native, bool skipVTables = false) @@ -745,7 +293,7 @@ namespace Std { __Instance = Marshal.AllocHGlobal(sizeof(global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C.ctorc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C(__Instance); return; } @@ -786,7 +334,7 @@ namespace Std namespace StringVal { [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__String_val____N_std_S__Simple_types__C + public unsafe partial struct __Internal { internal global::Std.StringVal.Bxty.__Internal _Bx; internal uint _Mysize; @@ -823,7 +371,19 @@ namespace Std { public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary> NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary>(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary> NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary>(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::Std.CharTraits<_Elem> managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::Std.CharTraits<_Elem> managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -836,11 +396,11 @@ namespace Std { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CharTraits<_Elem>)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -860,7 +420,7 @@ namespace Std : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CharTraits(void* native, bool skipVTables = false) diff --git a/src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/CppSharp.CppParser.cs b/src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/CppSharp.CppParser.cs index 820ae6b3..4ce7bfff 100644 --- a/src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/CppSharp.CppParser.cs +++ b/src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/CppSharp.CppParser.cs @@ -103,7 +103,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.NativeLibrary managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.NativeLibrary managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -116,11 +128,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (NativeLibrary)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -140,7 +152,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected NativeLibrary(void* native, bool skipVTables = false) @@ -154,7 +166,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.NativeLibrary.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -162,7 +174,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.NativeLibrary.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -283,7 +295,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.Comment managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.Comment managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -296,11 +320,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Comment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -320,7 +344,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Comment(void* native, bool skipVTables = false) @@ -334,7 +358,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Comment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, kind); } @@ -342,7 +366,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Comment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.Comment.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.Comment.__Internal*) _0.__Instance); } @@ -409,11 +433,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (BlockContentComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -433,7 +457,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected BlockContentComment(void* native, bool skipVTables = false) @@ -446,7 +470,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BlockContentComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -455,7 +479,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BlockContentComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, Kind); } @@ -464,7 +488,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BlockContentComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.BlockContentComment.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.BlockContentComment.__Internal*) _0.__Instance); } @@ -513,11 +537,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (FullComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -537,7 +561,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected FullComment(void* native, bool skipVTables = false) @@ -550,7 +574,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FullComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -559,7 +583,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FullComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -639,11 +663,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (InlineContentComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -663,7 +687,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected InlineContentComment(void* native, bool skipVTables = false) @@ -676,7 +700,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.InlineContentComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -685,7 +709,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.InlineContentComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, Kind); } @@ -694,7 +718,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.InlineContentComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.InlineContentComment.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.InlineContentComment.__Internal*) _0.__Instance); } @@ -757,11 +781,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ParagraphComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -781,7 +805,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ParagraphComment(void* native, bool skipVTables = false) @@ -794,7 +818,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ParagraphComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -803,7 +827,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ParagraphComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -923,7 +947,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.BlockCommandComment.Argument managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.BlockCommandComment.Argument managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -936,11 +972,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Argument)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -960,7 +996,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Argument(void* native, bool skipVTables = false) @@ -974,7 +1010,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BlockCommandComment.Argument.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -982,7 +1018,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BlockCommandComment.Argument.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -1033,11 +1069,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (BlockCommandComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -1057,7 +1093,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected BlockCommandComment(void* native, bool skipVTables = false) @@ -1070,7 +1106,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BlockCommandComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -1079,7 +1115,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BlockCommandComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, Kind); } @@ -1088,7 +1124,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BlockCommandComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -1212,11 +1248,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ParamCommandComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -1236,7 +1272,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ParamCommandComment(void* native, bool skipVTables = false) @@ -1249,7 +1285,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ParamCommandComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -1258,7 +1294,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ParamCommandComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -1349,11 +1385,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TParamCommandComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -1373,7 +1409,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TParamCommandComment(void* native, bool skipVTables = false) @@ -1386,7 +1422,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TParamCommandComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -1395,7 +1431,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TParamCommandComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -1474,11 +1510,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (VerbatimBlockLineComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -1498,7 +1534,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected VerbatimBlockLineComment(void* native, bool skipVTables = false) @@ -1511,7 +1547,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VerbatimBlockLineComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -1520,7 +1556,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VerbatimBlockLineComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -1599,11 +1635,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (VerbatimBlockComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -1623,7 +1659,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected VerbatimBlockComment(void* native, bool skipVTables = false) @@ -1636,7 +1672,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VerbatimBlockComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -1645,7 +1681,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VerbatimBlockComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -1728,11 +1764,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (VerbatimLineComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -1752,7 +1788,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected VerbatimLineComment(void* native, bool skipVTables = false) @@ -1765,7 +1801,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VerbatimLineComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -1774,7 +1810,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VerbatimLineComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -1872,7 +1908,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.InlineCommandComment.Argument managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.InlineCommandComment.Argument managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -1885,11 +1933,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Argument)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -1909,7 +1957,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Argument(void* native, bool skipVTables = false) @@ -1923,7 +1971,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.InlineCommandComment.Argument.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -1931,7 +1979,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.InlineCommandComment.Argument.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -1982,11 +2030,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (InlineCommandComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -2006,7 +2054,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected InlineCommandComment(void* native, bool skipVTables = false) @@ -2019,7 +2067,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.InlineCommandComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -2028,7 +2076,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.InlineCommandComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -2135,11 +2183,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (HTMLTagComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -2159,7 +2207,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected HTMLTagComment(void* native, bool skipVTables = false) @@ -2172,7 +2220,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.HTMLTagComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -2181,7 +2229,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.HTMLTagComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, Kind); } @@ -2190,7 +2238,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.HTMLTagComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.HTMLTagComment.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.HTMLTagComment.__Internal*) _0.__Instance); } @@ -2252,7 +2300,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -2265,11 +2325,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Attribute)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -2289,7 +2349,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Attribute(void* native, bool skipVTables = false) @@ -2303,7 +2363,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -2311,7 +2371,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -2376,11 +2436,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (HTMLStartTagComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -2400,7 +2460,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected HTMLStartTagComment(void* native, bool skipVTables = false) @@ -2413,7 +2473,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.HTMLStartTagComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -2422,7 +2482,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.HTMLStartTagComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -2518,11 +2578,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (HTMLEndTagComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -2542,7 +2602,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected HTMLEndTagComment(void* native, bool skipVTables = false) @@ -2555,7 +2615,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.HTMLEndTagComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -2564,7 +2624,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.HTMLEndTagComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -2629,11 +2689,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TextComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -2653,7 +2713,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TextComment(void* native, bool skipVTables = false) @@ -2666,7 +2726,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TextComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -2675,7 +2735,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TextComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -2734,7 +2794,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.RawComment managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.RawComment managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -2747,11 +2819,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (RawComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -2771,7 +2843,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected RawComment(void* native, bool skipVTables = false) @@ -2785,7 +2857,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.RawComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -2793,7 +2865,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.RawComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -2901,7 +2973,7 @@ namespace CppSharp } private SourceLocation.__Internal __instance; - internal SourceLocation.__Internal __Instance { get { return __instance; } } + internal SourceLocation.__Internal __Instance => __instance; internal static SourceLocation __CreateInstance(__IntPtr native, bool skipVTables = false) { @@ -2980,7 +3052,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.SourceRange managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.SourceRange managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -2993,11 +3077,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (SourceRange)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -3017,7 +3101,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected SourceRange(void* native, bool skipVTables = false) @@ -3031,7 +3115,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.SourceRange.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.SourceRange.__Internal*) __Instance) = *((global::CppSharp.Parser.SourceRange.__Internal*) _0.__Instance); } @@ -3039,7 +3123,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.SourceRange.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -3190,7 +3274,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.Type managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.Type managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -3203,11 +3299,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Type)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -3227,7 +3323,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Type(void* native, bool skipVTables = false) @@ -3241,7 +3337,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Type.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, kind); } @@ -3249,7 +3345,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Type.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -3321,7 +3417,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.TypeQualifiers managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.TypeQualifiers managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -3334,11 +3442,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TypeQualifiers)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -3358,7 +3466,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TypeQualifiers(void* native, bool skipVTables = false) @@ -3372,7 +3480,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypeQualifiers.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.TypeQualifiers.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.TypeQualifiers.__Internal*) _0.__Instance); } @@ -3380,7 +3488,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypeQualifiers.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } public void Dispose() @@ -3458,7 +3566,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.QualifiedType managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.QualifiedType managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -3471,11 +3591,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (QualifiedType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -3495,7 +3615,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected QualifiedType(void* native, bool skipVTables = false) @@ -3509,7 +3629,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.QualifiedType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -3517,7 +3637,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.QualifiedType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.QualifiedType.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.QualifiedType.__Internal*) _0.__Instance); } @@ -3594,11 +3714,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TagType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -3618,7 +3738,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TagType(void* native, bool skipVTables = false) @@ -3631,7 +3751,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TagType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -3640,7 +3760,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TagType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -3698,11 +3818,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ArrayType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -3722,7 +3842,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ArrayType(void* native, bool skipVTables = false) @@ -3735,7 +3855,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ArrayType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -3744,7 +3864,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ArrayType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -3849,11 +3969,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (FunctionType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -3873,7 +3993,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected FunctionType(void* native, bool skipVTables = false) @@ -3886,7 +4006,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FunctionType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -3895,7 +4015,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FunctionType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -4023,11 +4143,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (PointerType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -4047,7 +4167,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected PointerType(void* native, bool skipVTables = false) @@ -4060,7 +4180,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PointerType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -4069,7 +4189,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PointerType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -4130,11 +4250,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (MemberPointerType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -4154,7 +4274,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected MemberPointerType(void* native, bool skipVTables = false) @@ -4167,7 +4287,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MemberPointerType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -4176,7 +4296,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MemberPointerType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -4224,11 +4344,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TypedefType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -4248,7 +4368,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TypedefType(void* native, bool skipVTables = false) @@ -4261,7 +4381,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypedefType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -4270,7 +4390,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypedefType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -4318,11 +4438,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (AttributedType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -4342,7 +4462,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected AttributedType(void* native, bool skipVTables = false) @@ -4355,7 +4475,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AttributedType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -4364,7 +4484,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AttributedType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -4429,11 +4549,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DecayedType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -4453,7 +4573,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DecayedType(void* native, bool skipVTables = false) @@ -4466,7 +4586,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DecayedType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -4475,7 +4595,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DecayedType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -4559,7 +4679,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.TemplateArgument managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.TemplateArgument managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -4572,11 +4704,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TemplateArgument)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -4596,7 +4728,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TemplateArgument(void* native, bool skipVTables = false) @@ -4610,7 +4742,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateArgument.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -4618,7 +4750,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateArgument.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.TemplateArgument.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.TemplateArgument.__Internal*) _0.__Instance); } @@ -4738,11 +4870,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TemplateSpecializationType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -4762,7 +4894,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TemplateSpecializationType(void* native, bool skipVTables = false) @@ -4775,7 +4907,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateSpecializationType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -4784,7 +4916,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateSpecializationType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -4906,11 +5038,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DependentTemplateSpecializationType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -4930,7 +5062,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DependentTemplateSpecializationType(void* native, bool skipVTables = false) @@ -4943,7 +5075,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DependentTemplateSpecializationType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -4952,7 +5084,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DependentTemplateSpecializationType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -5050,11 +5182,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TemplateParameterType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -5074,7 +5206,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TemplateParameterType(void* native, bool skipVTables = false) @@ -5087,7 +5219,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateParameterType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -5096,7 +5228,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateParameterType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -5198,11 +5330,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TemplateParameterSubstitutionType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -5222,7 +5354,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TemplateParameterSubstitutionType(void* native, bool skipVTables = false) @@ -5235,7 +5367,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateParameterSubstitutionType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -5244,7 +5376,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateParameterSubstitutionType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -5307,11 +5439,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (InjectedClassNameType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -5331,7 +5463,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected InjectedClassNameType(void* native, bool skipVTables = false) @@ -5344,7 +5476,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.InjectedClassNameType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -5353,7 +5485,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.InjectedClassNameType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -5419,11 +5551,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DependentNameType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -5443,7 +5575,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DependentNameType(void* native, bool skipVTables = false) @@ -5456,7 +5588,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DependentNameType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -5465,7 +5597,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DependentNameType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -5541,11 +5673,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (PackExpansionType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -5565,7 +5697,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected PackExpansionType(void* native, bool skipVTables = false) @@ -5578,7 +5710,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PackExpansionType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -5587,7 +5719,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PackExpansionType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -5621,11 +5753,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (UnaryTransformType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -5645,7 +5777,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected UnaryTransformType(void* native, bool skipVTables = false) @@ -5658,7 +5790,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnaryTransformType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -5667,7 +5799,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnaryTransformType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -5730,11 +5862,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (UnresolvedUsingType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -5754,7 +5886,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected UnresolvedUsingType(void* native, bool skipVTables = false) @@ -5767,7 +5899,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnresolvedUsingType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -5776,7 +5908,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnresolvedUsingType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -5824,11 +5956,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (VectorType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -5848,7 +5980,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected VectorType(void* native, bool skipVTables = false) @@ -5861,7 +5993,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VectorType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -5870,7 +6002,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VectorType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -5931,11 +6063,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (BuiltinType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -5955,7 +6087,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected BuiltinType(void* native, bool skipVTables = false) @@ -5968,7 +6100,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BuiltinType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -5977,7 +6109,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BuiltinType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -6267,7 +6399,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.Declaration managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.Declaration managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -6280,11 +6424,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Declaration)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -6304,7 +6448,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Declaration(void* native, bool skipVTables = false) @@ -6318,7 +6462,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Declaration.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, kind); } @@ -6326,7 +6470,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Declaration.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -6851,11 +6995,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DeclarationContext)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -6875,7 +7019,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DeclarationContext(void* native, bool skipVTables = false) @@ -6888,7 +7032,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DeclarationContext.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, kind); } @@ -6897,7 +7041,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DeclarationContext.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -7256,11 +7400,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TypedefNameDecl)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -7280,7 +7424,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TypedefNameDecl(void* native, bool skipVTables = false) @@ -7293,7 +7437,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypedefNameDecl.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, kind); } @@ -7302,7 +7446,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypedefNameDecl.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -7393,11 +7537,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TypedefDecl)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -7417,7 +7561,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TypedefDecl(void* native, bool skipVTables = false) @@ -7430,7 +7574,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypedefDecl.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -7439,7 +7583,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypedefDecl.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -7511,11 +7655,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TypeAlias)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -7535,7 +7679,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TypeAlias(void* native, bool skipVTables = false) @@ -7548,7 +7692,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypeAlias.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -7557,7 +7701,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypeAlias.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -7642,11 +7786,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Friend)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -7666,7 +7810,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Friend(void* native, bool skipVTables = false) @@ -7679,7 +7823,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Friend.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -7688,7 +7832,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Friend.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -7746,7 +7890,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.StatementObsolete managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.StatementObsolete managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -7759,11 +7915,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (StatementObsolete)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -7783,7 +7939,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected StatementObsolete(void* native, bool skipVTables = false) @@ -7797,7 +7953,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.StatementObsolete.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, str); var __arg0 = __basicString0.__Instance; @@ -7810,7 +7966,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.StatementObsolete.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -7907,11 +8063,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ExpressionObsolete)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -7931,7 +8087,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ExpressionObsolete(void* native, bool skipVTables = false) @@ -7944,7 +8100,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ExpressionObsolete.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, str); var __arg0 = __basicString0.__Instance; @@ -7958,7 +8114,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ExpressionObsolete.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -8012,11 +8168,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (BinaryOperatorObsolete)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -8036,7 +8192,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected BinaryOperatorObsolete(void* native, bool skipVTables = false) @@ -8049,7 +8205,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BinaryOperatorObsolete.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, str); var __arg0 = __basicString0.__Instance; @@ -8068,7 +8224,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BinaryOperatorObsolete.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -8174,11 +8330,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CallExprObsolete)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -8198,7 +8354,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CallExprObsolete(void* native, bool skipVTables = false) @@ -8211,7 +8367,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CallExprObsolete.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, str); var __arg0 = __basicString0.__Instance; @@ -8225,7 +8381,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CallExprObsolete.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -8319,11 +8475,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXConstructExprObsolete)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -8343,7 +8499,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXConstructExprObsolete(void* native, bool skipVTables = false) @@ -8356,7 +8512,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXConstructExprObsolete.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, str); var __arg0 = __basicString0.__Instance; @@ -8370,7 +8526,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXConstructExprObsolete.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -8476,11 +8632,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Parameter)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -8500,7 +8656,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Parameter(void* native, bool skipVTables = false) @@ -8513,7 +8669,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Parameter.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -8522,7 +8678,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Parameter.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -8717,11 +8873,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Function)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -8741,7 +8897,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Function(void* native, bool skipVTables = false) @@ -8754,7 +8910,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Function.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -8763,7 +8919,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Function.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -9174,11 +9330,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Method)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -9198,7 +9354,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Method(void* native, bool skipVTables = false) @@ -9211,7 +9367,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Method.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -9220,7 +9376,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Method.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -9530,11 +9686,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Item)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -9554,7 +9710,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Item(void* native, bool skipVTables = false) @@ -9567,7 +9723,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Enumeration.Item.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -9576,7 +9732,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Enumeration.Item.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -9635,11 +9791,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Enumeration)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -9659,7 +9815,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Enumeration(void* native, bool skipVTables = false) @@ -9672,7 +9828,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Enumeration.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -9681,7 +9837,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Enumeration.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -9837,11 +9993,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Variable)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -9861,7 +10017,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Variable(void* native, bool skipVTables = false) @@ -9874,7 +10030,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Variable.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -9883,7 +10039,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Variable.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -9981,7 +10137,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.BaseClassSpecifier managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.BaseClassSpecifier managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -9994,11 +10162,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (BaseClassSpecifier)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -10018,7 +10186,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected BaseClassSpecifier(void* native, bool skipVTables = false) @@ -10032,7 +10200,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BaseClassSpecifier.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -10040,7 +10208,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BaseClassSpecifier.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.BaseClassSpecifier.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.BaseClassSpecifier.__Internal*) _0.__Instance); } @@ -10167,11 +10335,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Field)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -10191,7 +10359,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Field(void* native, bool skipVTables = false) @@ -10204,7 +10372,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Field.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -10213,7 +10381,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Field.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -10338,11 +10506,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (AccessSpecifierDecl)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -10362,7 +10530,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected AccessSpecifierDecl(void* native, bool skipVTables = false) @@ -10375,7 +10543,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AccessSpecifierDecl.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -10384,7 +10552,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AccessSpecifierDecl.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -10425,7 +10593,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.VTableComponent managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.VTableComponent managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -10438,11 +10618,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (VTableComponent)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -10462,7 +10642,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected VTableComponent(void* native, bool skipVTables = false) @@ -10476,7 +10656,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VTableComponent.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -10484,7 +10664,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VTableComponent.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.VTableComponent.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.VTableComponent.__Internal*) _0.__Instance); } @@ -10578,7 +10758,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.VTableLayout managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.VTableLayout managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -10591,11 +10783,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (VTableLayout)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -10615,7 +10807,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected VTableLayout(void* native, bool skipVTables = false) @@ -10629,7 +10821,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VTableLayout.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -10637,7 +10829,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VTableLayout.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -10715,7 +10907,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.VFTableInfo managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.VFTableInfo managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -10728,11 +10932,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (VFTableInfo)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -10752,7 +10956,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected VFTableInfo(void* native, bool skipVTables = false) @@ -10766,7 +10970,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VFTableInfo.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -10774,7 +10978,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VFTableInfo.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -10878,7 +11082,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.LayoutField managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.LayoutField managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -10891,11 +11107,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (LayoutField)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -10915,7 +11131,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected LayoutField(void* native, bool skipVTables = false) @@ -10929,7 +11145,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.LayoutField.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -10937,7 +11153,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.LayoutField.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(other, null)) throw new global::System.ArgumentNullException("other", "Cannot be null because it is a C++ reference (&)."); var __arg0 = other.__Instance; @@ -11040,7 +11256,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.LayoutBase managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.LayoutBase managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -11053,11 +11281,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (LayoutBase)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -11077,7 +11305,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected LayoutBase(void* native, bool skipVTables = false) @@ -11091,7 +11319,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.LayoutBase.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -11099,7 +11327,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.LayoutBase.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(other, null)) throw new global::System.ArgumentNullException("other", "Cannot be null because it is a C++ reference (&)."); var __arg0 = other.__Instance; @@ -11219,7 +11447,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.ClassLayout managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.ClassLayout managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -11232,11 +11472,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ClassLayout)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -11256,7 +11496,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ClassLayout(void* native, bool skipVTables = false) @@ -11270,7 +11510,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ClassLayout.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -11278,7 +11518,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ClassLayout.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -11627,11 +11867,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Class)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -11651,7 +11891,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Class(void* native, bool skipVTables = false) @@ -11664,7 +11904,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Class.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -11673,7 +11913,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Class.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -12037,11 +12277,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Template)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -12061,7 +12301,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Template(void* native, bool skipVTables = false) @@ -12074,7 +12314,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Template.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, kind); } @@ -12083,7 +12323,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Template.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -12092,7 +12332,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Template.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -12213,11 +12453,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TypeAliasTemplate)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -12237,7 +12477,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TypeAliasTemplate(void* native, bool skipVTables = false) @@ -12250,7 +12490,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypeAliasTemplate.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -12259,7 +12499,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypeAliasTemplate.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -12332,11 +12572,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TemplateParameter)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -12356,7 +12596,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TemplateParameter(void* native, bool skipVTables = false) @@ -12369,7 +12609,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateParameter.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, kind); } @@ -12378,7 +12618,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateParameter.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -12497,11 +12737,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TemplateTemplateParameter)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -12521,7 +12761,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TemplateTemplateParameter(void* native, bool skipVTables = false) @@ -12534,7 +12774,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateTemplateParameter.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -12543,7 +12783,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateTemplateParameter.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -12656,11 +12896,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TypeTemplateParameter)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -12680,7 +12920,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TypeTemplateParameter(void* native, bool skipVTables = false) @@ -12693,7 +12933,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypeTemplateParameter.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -12702,7 +12942,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypeTemplateParameter.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -12795,11 +13035,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (NonTypeTemplateParameter)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -12819,7 +13059,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected NonTypeTemplateParameter(void* native, bool skipVTables = false) @@ -12832,7 +13072,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.NonTypeTemplateParameter.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -12841,7 +13081,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.NonTypeTemplateParameter.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -12999,11 +13239,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ClassTemplate)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -13023,7 +13263,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ClassTemplate(void* native, bool skipVTables = false) @@ -13036,7 +13276,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ClassTemplate.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -13045,7 +13285,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ClassTemplate.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -13209,11 +13449,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ClassTemplateSpecialization)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -13233,7 +13473,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ClassTemplateSpecialization(void* native, bool skipVTables = false) @@ -13246,7 +13486,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ClassTemplateSpecialization.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -13255,7 +13495,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ClassTemplateSpecialization.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -13411,11 +13651,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ClassTemplatePartialSpecialization)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -13435,7 +13675,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ClassTemplatePartialSpecialization(void* native, bool skipVTables = false) @@ -13448,7 +13688,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ClassTemplatePartialSpecialization.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -13457,7 +13697,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ClassTemplatePartialSpecialization.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -13545,11 +13785,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (FunctionTemplate)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -13569,7 +13809,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected FunctionTemplate(void* native, bool skipVTables = false) @@ -13582,7 +13822,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FunctionTemplate.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -13591,7 +13831,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FunctionTemplate.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -13689,7 +13929,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.FunctionTemplateSpecialization managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.FunctionTemplateSpecialization managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -13702,11 +13954,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (FunctionTemplateSpecialization)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -13726,7 +13978,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected FunctionTemplateSpecialization(void* native, bool skipVTables = false) @@ -13740,7 +13992,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FunctionTemplateSpecialization.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -13748,7 +14000,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FunctionTemplateSpecialization.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -13914,11 +14166,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (VarTemplate)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -13938,7 +14190,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected VarTemplate(void* native, bool skipVTables = false) @@ -13951,7 +14203,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VarTemplate.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -13960,7 +14212,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VarTemplate.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -14101,11 +14353,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (VarTemplateSpecialization)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -14125,7 +14377,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected VarTemplateSpecialization(void* native, bool skipVTables = false) @@ -14138,7 +14390,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VarTemplateSpecialization.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -14147,7 +14399,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VarTemplateSpecialization.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -14280,11 +14532,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (VarTemplatePartialSpecialization)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -14304,7 +14556,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected VarTemplatePartialSpecialization(void* native, bool skipVTables = false) @@ -14317,7 +14569,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VarTemplatePartialSpecialization.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -14326,7 +14578,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VarTemplatePartialSpecialization.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -14396,11 +14648,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (UnresolvedUsingTypename)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -14420,7 +14672,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected UnresolvedUsingTypename(void* native, bool skipVTables = false) @@ -14433,7 +14685,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnresolvedUsingTypename.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -14442,7 +14694,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnresolvedUsingTypename.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -14524,11 +14776,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Namespace)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -14548,7 +14800,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Namespace(void* native, bool skipVTables = false) @@ -14561,7 +14813,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Namespace.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -14570,7 +14822,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Namespace.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -14624,7 +14876,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.PreprocessedEntity managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.PreprocessedEntity managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -14637,11 +14901,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (PreprocessedEntity)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -14661,7 +14925,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected PreprocessedEntity(void* native, bool skipVTables = false) @@ -14675,7 +14939,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PreprocessedEntity.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -14683,7 +14947,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PreprocessedEntity.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.PreprocessedEntity.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.PreprocessedEntity.__Internal*) _0.__Instance); } @@ -14777,11 +15041,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (MacroDefinition)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -14801,7 +15065,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected MacroDefinition(void* native, bool skipVTables = false) @@ -14814,7 +15078,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MacroDefinition.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -14823,7 +15087,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MacroDefinition.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -14931,11 +15195,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (MacroExpansion)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -14955,7 +15219,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected MacroExpansion(void* native, bool skipVTables = false) @@ -14968,7 +15232,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MacroExpansion.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -14977,7 +15241,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MacroExpansion.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -15116,11 +15380,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TranslationUnit)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -15140,7 +15404,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TranslationUnit(void* native, bool skipVTables = false) @@ -15153,7 +15417,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TranslationUnit.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -15162,7 +15426,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TranslationUnit.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -15276,7 +15540,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.ASTContext managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.ASTContext managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -15289,11 +15565,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ASTContext)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -15313,7 +15589,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ASTContext(void* native, bool skipVTables = false) @@ -15327,7 +15603,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ASTContext.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -15335,7 +15611,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ASTContext.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -15565,7 +15841,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.Stmt managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.Stmt managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -15578,11 +15866,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Stmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -15602,7 +15890,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Stmt(void* native, bool skipVTables = false) @@ -15616,7 +15904,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Stmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -15624,7 +15912,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Stmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -15632,7 +15920,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Stmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.Stmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.Stmt.__Internal*) _0.__Instance); } @@ -15758,11 +16046,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DeclStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -15782,7 +16070,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DeclStmt(void* native, bool skipVTables = false) @@ -15795,7 +16083,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DeclStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -15804,7 +16092,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DeclStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -15912,11 +16200,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (NullStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -15936,7 +16224,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected NullStmt(void* native, bool skipVTables = false) @@ -15949,7 +16237,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.NullStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -15958,7 +16246,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.NullStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.NullStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.NullStmt.__Internal*) _0.__Instance); } @@ -16037,11 +16325,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CompoundStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -16061,7 +16349,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CompoundStmt(void* native, bool skipVTables = false) @@ -16074,7 +16362,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CompoundStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -16083,7 +16371,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CompoundStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -16248,11 +16536,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (SwitchCase)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -16272,7 +16560,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected SwitchCase(void* native, bool skipVTables = false) @@ -16285,7 +16573,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SwitchCase.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -16294,7 +16582,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SwitchCase.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -16303,7 +16591,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SwitchCase.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.SwitchCase.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.SwitchCase.__Internal*) _0.__Instance); } @@ -16387,11 +16675,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CaseStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -16411,7 +16699,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CaseStmt(void* native, bool skipVTables = false) @@ -16424,7 +16712,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CaseStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -16433,7 +16721,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CaseStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CaseStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CaseStmt.__Internal*) _0.__Instance); } @@ -16535,11 +16823,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DefaultStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -16559,7 +16847,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DefaultStmt(void* native, bool skipVTables = false) @@ -16572,7 +16860,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DefaultStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -16581,7 +16869,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DefaultStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.DefaultStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.DefaultStmt.__Internal*) _0.__Instance); } @@ -16629,11 +16917,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (LabelStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -16653,7 +16941,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected LabelStmt(void* native, bool skipVTables = false) @@ -16666,7 +16954,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.LabelStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -16675,7 +16963,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.LabelStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.LabelStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.LabelStmt.__Internal*) _0.__Instance); if (_0.__name_OwnsNativeMemory) this.Name = _0.Name; @@ -16762,11 +17050,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (AttributedStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -16786,7 +17074,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected AttributedStmt(void* native, bool skipVTables = false) @@ -16799,7 +17087,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AttributedStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -16808,7 +17096,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AttributedStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.AttributedStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.AttributedStmt.__Internal*) _0.__Instance); } @@ -16878,11 +17166,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (IfStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -16902,7 +17190,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected IfStmt(void* native, bool skipVTables = false) @@ -16915,7 +17203,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.IfStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -16924,7 +17212,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.IfStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.IfStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.IfStmt.__Internal*) _0.__Instance); } @@ -17124,11 +17412,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (SwitchStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -17148,7 +17436,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected SwitchStmt(void* native, bool skipVTables = false) @@ -17161,7 +17449,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SwitchStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -17170,7 +17458,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SwitchStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.SwitchStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.SwitchStmt.__Internal*) _0.__Instance); } @@ -17314,11 +17602,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (WhileStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -17338,7 +17626,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected WhileStmt(void* native, bool skipVTables = false) @@ -17351,7 +17639,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.WhileStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -17360,7 +17648,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.WhileStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.WhileStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.WhileStmt.__Internal*) _0.__Instance); } @@ -17464,11 +17752,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DoStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -17488,7 +17776,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DoStmt(void* native, bool skipVTables = false) @@ -17501,7 +17789,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DoStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -17510,7 +17798,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DoStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.DoStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.DoStmt.__Internal*) _0.__Instance); } @@ -17616,11 +17904,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ForStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -17640,7 +17928,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ForStmt(void* native, bool skipVTables = false) @@ -17653,7 +17941,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ForStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -17662,7 +17950,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ForStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ForStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ForStmt.__Internal*) _0.__Instance); } @@ -17804,11 +18092,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (GotoStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -17828,7 +18116,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected GotoStmt(void* native, bool skipVTables = false) @@ -17841,7 +18129,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.GotoStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -17850,7 +18138,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.GotoStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.GotoStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.GotoStmt.__Internal*) _0.__Instance); } @@ -17910,11 +18198,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (IndirectGotoStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -17934,7 +18222,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected IndirectGotoStmt(void* native, bool skipVTables = false) @@ -17947,7 +18235,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.IndirectGotoStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -17956,7 +18244,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.IndirectGotoStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.IndirectGotoStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.IndirectGotoStmt.__Internal*) _0.__Instance); } @@ -18028,11 +18316,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ContinueStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -18052,7 +18340,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ContinueStmt(void* native, bool skipVTables = false) @@ -18065,7 +18353,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ContinueStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -18074,7 +18362,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ContinueStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ContinueStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ContinueStmt.__Internal*) _0.__Instance); } @@ -18119,11 +18407,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (BreakStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -18143,7 +18431,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected BreakStmt(void* native, bool skipVTables = false) @@ -18156,7 +18444,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BreakStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -18165,7 +18453,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BreakStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.BreakStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.BreakStmt.__Internal*) _0.__Instance); } @@ -18211,11 +18499,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ReturnStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -18235,7 +18523,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ReturnStmt(void* native, bool skipVTables = false) @@ -18248,7 +18536,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ReturnStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -18257,7 +18545,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ReturnStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ReturnStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ReturnStmt.__Internal*) _0.__Instance); } @@ -18354,11 +18642,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (AsmStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -18378,7 +18666,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected AsmStmt(void* native, bool skipVTables = false) @@ -18391,7 +18679,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AsmStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -18400,7 +18688,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AsmStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -18409,7 +18697,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AsmStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -18647,7 +18935,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.GCCAsmStmt.AsmStringPiece managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.GCCAsmStmt.AsmStringPiece managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -18660,11 +18960,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (AsmStringPiece)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -18684,7 +18984,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected AsmStringPiece(void* native, bool skipVTables = false) @@ -18698,7 +18998,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.GCCAsmStmt.AsmStringPiece.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -18706,7 +19006,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.GCCAsmStmt.AsmStringPiece.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -18809,11 +19109,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (GCCAsmStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -18833,7 +19133,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected GCCAsmStmt(void* native, bool skipVTables = false) @@ -18846,7 +19146,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.GCCAsmStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -18855,7 +19155,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.GCCAsmStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -18933,11 +19233,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (MSAsmStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -18957,7 +19257,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected MSAsmStmt(void* native, bool skipVTables = false) @@ -18970,7 +19270,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MSAsmStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -18979,7 +19279,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MSAsmStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -19084,11 +19384,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (SEHExceptStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -19108,7 +19408,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected SEHExceptStmt(void* native, bool skipVTables = false) @@ -19121,7 +19421,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SEHExceptStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -19130,7 +19430,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SEHExceptStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.SEHExceptStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.SEHExceptStmt.__Internal*) _0.__Instance); } @@ -19204,11 +19504,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (SEHFinallyStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -19228,7 +19528,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected SEHFinallyStmt(void* native, bool skipVTables = false) @@ -19241,7 +19541,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SEHFinallyStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -19250,7 +19550,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SEHFinallyStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.SEHFinallyStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.SEHFinallyStmt.__Internal*) _0.__Instance); } @@ -19314,11 +19614,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (SEHTryStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -19338,7 +19638,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected SEHTryStmt(void* native, bool skipVTables = false) @@ -19351,7 +19651,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SEHTryStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -19360,7 +19660,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SEHTryStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.SEHTryStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.SEHTryStmt.__Internal*) _0.__Instance); } @@ -19474,11 +19774,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (SEHLeaveStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -19498,7 +19798,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected SEHLeaveStmt(void* native, bool skipVTables = false) @@ -19511,7 +19811,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SEHLeaveStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -19520,7 +19820,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SEHLeaveStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.SEHLeaveStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.SEHLeaveStmt.__Internal*) _0.__Instance); } @@ -19602,7 +19902,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.CapturedStmt.Capture managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.CapturedStmt.Capture managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -19615,11 +19927,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Capture)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -19639,7 +19951,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Capture(void* native, bool skipVTables = false) @@ -19653,7 +19965,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CapturedStmt.Capture.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -19661,7 +19973,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CapturedStmt.Capture.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CapturedStmt.Capture.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CapturedStmt.Capture.__Internal*) _0.__Instance); } @@ -19771,11 +20083,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CapturedStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -19795,7 +20107,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CapturedStmt(void* native, bool skipVTables = false) @@ -19808,7 +20120,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CapturedStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -19817,7 +20129,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CapturedStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -19926,11 +20238,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXCatchStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -19950,7 +20262,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXCatchStmt(void* native, bool skipVTables = false) @@ -19963,7 +20275,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXCatchStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -19972,7 +20284,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXCatchStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXCatchStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXCatchStmt.__Internal*) _0.__Instance); } @@ -20048,11 +20360,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXTryStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -20072,7 +20384,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXTryStmt(void* native, bool skipVTables = false) @@ -20085,7 +20397,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXTryStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -20094,7 +20406,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXTryStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXTryStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXTryStmt.__Internal*) _0.__Instance); } @@ -20178,11 +20490,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXForRangeStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -20202,7 +20514,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXForRangeStmt(void* native, bool skipVTables = false) @@ -20215,7 +20527,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXForRangeStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -20224,7 +20536,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXForRangeStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXForRangeStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXForRangeStmt.__Internal*) _0.__Instance); } @@ -20437,11 +20749,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (MSDependentExistsStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -20461,7 +20773,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected MSDependentExistsStmt(void* native, bool skipVTables = false) @@ -20474,7 +20786,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MSDependentExistsStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -20483,7 +20795,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MSDependentExistsStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.MSDependentExistsStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.MSDependentExistsStmt.__Internal*) _0.__Instance); } @@ -20602,7 +20914,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.CoroutineBodyStmt.CtorArgs managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.CoroutineBodyStmt.CtorArgs managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -20615,11 +20939,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CtorArgs)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -20639,7 +20963,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CtorArgs(void* native, bool skipVTables = false) @@ -20653,7 +20977,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoroutineBodyStmt.CtorArgs.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -20661,7 +20985,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoroutineBodyStmt.CtorArgs.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CoroutineBodyStmt.CtorArgs.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CoroutineBodyStmt.CtorArgs.__Internal*) _0.__Instance); } @@ -20693,11 +21017,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CoroutineBodyStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -20717,7 +21041,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CoroutineBodyStmt(void* native, bool skipVTables = false) @@ -20730,7 +21054,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoroutineBodyStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -20739,7 +21063,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoroutineBodyStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CoroutineBodyStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CoroutineBodyStmt.__Internal*) _0.__Instance); } @@ -20962,11 +21286,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CoreturnStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -20986,7 +21310,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CoreturnStmt(void* native, bool skipVTables = false) @@ -20999,7 +21323,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoreturnStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -21008,7 +21332,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoreturnStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CoreturnStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CoreturnStmt.__Internal*) _0.__Instance); } @@ -21412,7 +21736,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.Expr.Classification managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.Expr.Classification managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -21425,11 +21761,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Classification)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -21449,7 +21785,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Classification(void* native, bool skipVTables = false) @@ -21463,7 +21799,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Expr.Classification.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -21471,7 +21807,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Expr.Classification.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.Expr.Classification.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.Expr.Classification.__Internal*) _0.__Instance); } @@ -21607,11 +21943,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Expr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -21631,7 +21967,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Expr(void* native, bool skipVTables = false) @@ -21644,7 +21980,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Expr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -21653,7 +21989,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Expr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -21662,7 +21998,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Expr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.Expr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.Expr.__Internal*) _0.__Instance); } @@ -21902,11 +22238,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (FullExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -21926,7 +22262,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected FullExpr(void* native, bool skipVTables = false) @@ -21939,7 +22275,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FullExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -21948,7 +22284,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FullExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -21957,7 +22293,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FullExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.FullExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.FullExpr.__Internal*) _0.__Instance); } @@ -22022,11 +22358,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ConstantExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -22046,7 +22382,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ConstantExpr(void* native, bool skipVTables = false) @@ -22059,7 +22395,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ConstantExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -22068,7 +22404,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ConstantExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ConstantExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ConstantExpr.__Internal*) _0.__Instance); } } @@ -22116,11 +22452,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (OpaqueValueExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -22140,7 +22476,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected OpaqueValueExpr(void* native, bool skipVTables = false) @@ -22153,7 +22489,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.OpaqueValueExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -22162,7 +22498,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.OpaqueValueExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.OpaqueValueExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.OpaqueValueExpr.__Internal*) _0.__Instance); } @@ -22259,11 +22595,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DeclRefExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -22283,7 +22619,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DeclRefExpr(void* native, bool skipVTables = false) @@ -22296,7 +22632,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DeclRefExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -22305,7 +22641,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DeclRefExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.DeclRefExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.DeclRefExpr.__Internal*) _0.__Instance); } @@ -22509,11 +22845,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (IntegerLiteral)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -22533,7 +22869,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected IntegerLiteral(void* native, bool skipVTables = false) @@ -22546,7 +22882,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.IntegerLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -22555,7 +22891,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.IntegerLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.IntegerLiteral.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.IntegerLiteral.__Internal*) _0.__Instance); } @@ -22628,11 +22964,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (FixedPointLiteral)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -22652,7 +22988,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected FixedPointLiteral(void* native, bool skipVTables = false) @@ -22665,7 +23001,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FixedPointLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -22674,7 +23010,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FixedPointLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.FixedPointLiteral.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.FixedPointLiteral.__Internal*) _0.__Instance); } @@ -22757,11 +23093,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CharacterLiteral)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -22781,7 +23117,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CharacterLiteral(void* native, bool skipVTables = false) @@ -22794,7 +23130,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CharacterLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -22803,7 +23139,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CharacterLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CharacterLiteral.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CharacterLiteral.__Internal*) _0.__Instance); } @@ -22890,11 +23226,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (FloatingLiteral)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -22914,7 +23250,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected FloatingLiteral(void* native, bool skipVTables = false) @@ -22927,7 +23263,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FloatingLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -22936,7 +23272,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FloatingLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.FloatingLiteral.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.FloatingLiteral.__Internal*) _0.__Instance); } @@ -23021,11 +23357,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ImaginaryLiteral)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -23045,7 +23381,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ImaginaryLiteral(void* native, bool skipVTables = false) @@ -23058,7 +23394,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ImaginaryLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -23067,7 +23403,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ImaginaryLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ImaginaryLiteral.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ImaginaryLiteral.__Internal*) _0.__Instance); } @@ -23153,11 +23489,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (StringLiteral)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -23177,7 +23513,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected StringLiteral(void* native, bool skipVTables = false) @@ -23190,7 +23526,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.StringLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -23199,7 +23535,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.StringLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -23473,11 +23809,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (PredefinedExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -23497,7 +23833,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected PredefinedExpr(void* native, bool skipVTables = false) @@ -23510,7 +23846,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PredefinedExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -23519,7 +23855,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PredefinedExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.PredefinedExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.PredefinedExpr.__Internal*) _0.__Instance); } @@ -23593,11 +23929,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ParenExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -23617,7 +23953,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ParenExpr(void* native, bool skipVTables = false) @@ -23630,7 +23966,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ParenExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -23639,7 +23975,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ParenExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ParenExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ParenExpr.__Internal*) _0.__Instance); } @@ -23735,11 +24071,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (UnaryOperator)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -23759,7 +24095,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected UnaryOperator(void* native, bool skipVTables = false) @@ -23772,7 +24108,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnaryOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -23781,7 +24117,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnaryOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.UnaryOperator.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.UnaryOperator.__Internal*) _0.__Instance); } @@ -23974,11 +24310,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (OffsetOfExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -23998,7 +24334,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected OffsetOfExpr(void* native, bool skipVTables = false) @@ -24011,7 +24347,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.OffsetOfExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -24020,7 +24356,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.OffsetOfExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.OffsetOfExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.OffsetOfExpr.__Internal*) _0.__Instance); } @@ -24124,11 +24460,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (UnaryExprOrTypeTraitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -24148,7 +24484,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected UnaryExprOrTypeTraitExpr(void* native, bool skipVTables = false) @@ -24161,7 +24497,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnaryExprOrTypeTraitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -24170,7 +24506,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnaryExprOrTypeTraitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.UnaryExprOrTypeTraitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.UnaryExprOrTypeTraitExpr.__Internal*) _0.__Instance); } @@ -24316,11 +24652,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ArraySubscriptExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -24340,7 +24676,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ArraySubscriptExpr(void* native, bool skipVTables = false) @@ -24353,7 +24689,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ArraySubscriptExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -24362,7 +24698,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ArraySubscriptExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ArraySubscriptExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ArraySubscriptExpr.__Internal*) _0.__Instance); } @@ -24503,11 +24839,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CallExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -24527,7 +24863,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CallExpr(void* native, bool skipVTables = false) @@ -24540,7 +24876,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CallExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -24549,7 +24885,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CallExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -24558,7 +24894,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CallExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -24776,11 +25112,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (MemberExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -24800,7 +25136,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected MemberExpr(void* native, bool skipVTables = false) @@ -24813,7 +25149,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MemberExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -24822,7 +25158,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MemberExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.MemberExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.MemberExpr.__Internal*) _0.__Instance); } @@ -25040,11 +25376,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CompoundLiteralExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -25064,7 +25400,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CompoundLiteralExpr(void* native, bool skipVTables = false) @@ -25077,7 +25413,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CompoundLiteralExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -25086,7 +25422,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CompoundLiteralExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CompoundLiteralExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CompoundLiteralExpr.__Internal*) _0.__Instance); } @@ -25182,11 +25518,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CastExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -25206,7 +25542,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CastExpr(void* native, bool skipVTables = false) @@ -25219,7 +25555,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -25228,7 +25564,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -25237,7 +25573,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CastExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CastExpr.__Internal*) _0.__Instance); if (_0.__castKindName_OwnsNativeMemory) this.CastKindName = _0.CastKindName; @@ -25408,11 +25744,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ImplicitCastExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -25432,7 +25768,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ImplicitCastExpr(void* native, bool skipVTables = false) @@ -25445,7 +25781,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ImplicitCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -25454,7 +25790,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ImplicitCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ImplicitCastExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ImplicitCastExpr.__Internal*) _0.__Instance); } @@ -25523,11 +25859,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ExplicitCastExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -25547,7 +25883,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ExplicitCastExpr(void* native, bool skipVTables = false) @@ -25560,7 +25896,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ExplicitCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -25569,7 +25905,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ExplicitCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -25578,7 +25914,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ExplicitCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ExplicitCastExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ExplicitCastExpr.__Internal*) _0.__Instance); } @@ -25653,11 +25989,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CStyleCastExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -25677,7 +26013,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CStyleCastExpr(void* native, bool skipVTables = false) @@ -25690,7 +26026,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CStyleCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -25699,7 +26035,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CStyleCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CStyleCastExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CStyleCastExpr.__Internal*) _0.__Instance); } @@ -25795,11 +26131,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (BinaryOperator)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -25819,7 +26155,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected BinaryOperator(void* native, bool skipVTables = false) @@ -25832,7 +26168,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BinaryOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -25841,7 +26177,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BinaryOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -25850,7 +26186,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BinaryOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -26192,11 +26528,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CompoundAssignOperator)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -26216,7 +26552,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CompoundAssignOperator(void* native, bool skipVTables = false) @@ -26229,7 +26565,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CompoundAssignOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -26238,7 +26574,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CompoundAssignOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -26339,11 +26675,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (AbstractConditionalOperator)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -26363,7 +26699,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected AbstractConditionalOperator(void* native, bool skipVTables = false) @@ -26376,7 +26712,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AbstractConditionalOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -26385,7 +26721,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AbstractConditionalOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -26394,7 +26730,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AbstractConditionalOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.AbstractConditionalOperator.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.AbstractConditionalOperator.__Internal*) _0.__Instance); } @@ -26519,11 +26855,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ConditionalOperator)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -26543,7 +26879,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ConditionalOperator(void* native, bool skipVTables = false) @@ -26556,7 +26892,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ConditionalOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -26565,7 +26901,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ConditionalOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ConditionalOperator.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ConditionalOperator.__Internal*) _0.__Instance); } @@ -26645,11 +26981,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (BinaryConditionalOperator)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -26669,7 +27005,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected BinaryConditionalOperator(void* native, bool skipVTables = false) @@ -26682,7 +27018,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BinaryConditionalOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -26691,7 +27027,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BinaryConditionalOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.BinaryConditionalOperator.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.BinaryConditionalOperator.__Internal*) _0.__Instance); } @@ -26766,11 +27102,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (AddrLabelExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -26790,7 +27126,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected AddrLabelExpr(void* native, bool skipVTables = false) @@ -26803,7 +27139,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AddrLabelExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -26812,7 +27148,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AddrLabelExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.AddrLabelExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.AddrLabelExpr.__Internal*) _0.__Instance); } @@ -26886,11 +27222,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (StmtExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -26910,7 +27246,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected StmtExpr(void* native, bool skipVTables = false) @@ -26923,7 +27259,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.StmtExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -26932,7 +27268,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.StmtExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.StmtExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.StmtExpr.__Internal*) _0.__Instance); } @@ -27020,11 +27356,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ShuffleVectorExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -27044,7 +27380,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ShuffleVectorExpr(void* native, bool skipVTables = false) @@ -27057,7 +27393,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ShuffleVectorExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -27066,7 +27402,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ShuffleVectorExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ShuffleVectorExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ShuffleVectorExpr.__Internal*) _0.__Instance); } @@ -27153,11 +27489,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ConvertVectorExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -27177,7 +27513,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ConvertVectorExpr(void* native, bool skipVTables = false) @@ -27190,7 +27526,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ConvertVectorExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -27199,7 +27535,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ConvertVectorExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ConvertVectorExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ConvertVectorExpr.__Internal*) _0.__Instance); } @@ -27292,11 +27628,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ChooseExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -27316,7 +27652,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ChooseExpr(void* native, bool skipVTables = false) @@ -27329,7 +27665,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ChooseExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -27338,7 +27674,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ChooseExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ChooseExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ChooseExpr.__Internal*) _0.__Instance); } @@ -27492,11 +27828,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (GNUNullExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -27516,7 +27852,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected GNUNullExpr(void* native, bool skipVTables = false) @@ -27529,7 +27865,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.GNUNullExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -27538,7 +27874,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.GNUNullExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.GNUNullExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.GNUNullExpr.__Internal*) _0.__Instance); } @@ -27600,11 +27936,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (VAArgExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -27624,7 +27960,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected VAArgExpr(void* native, bool skipVTables = false) @@ -27637,7 +27973,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VAArgExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -27646,7 +27982,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VAArgExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.VAArgExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.VAArgExpr.__Internal*) _0.__Instance); } @@ -27756,11 +28092,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (InitListExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -27780,7 +28116,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected InitListExpr(void* native, bool skipVTables = false) @@ -27793,7 +28129,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.InitListExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -27802,7 +28138,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.InitListExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.InitListExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.InitListExpr.__Internal*) _0.__Instance); } @@ -28029,7 +28365,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.DesignatedInitExpr.Designator managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.DesignatedInitExpr.Designator managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -28042,11 +28390,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Designator)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -28066,7 +28414,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Designator(void* native, bool skipVTables = false) @@ -28080,7 +28428,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DesignatedInitExpr.Designator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -28088,7 +28436,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DesignatedInitExpr.Designator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.DesignatedInitExpr.Designator.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.DesignatedInitExpr.Designator.__Internal*) _0.__Instance); } @@ -28271,7 +28619,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.DesignatedInitExpr.FieldDesignator managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.DesignatedInitExpr.FieldDesignator managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -28284,11 +28644,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (FieldDesignator)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -28308,7 +28668,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected FieldDesignator(void* native, bool skipVTables = false) @@ -28322,7 +28682,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DesignatedInitExpr.FieldDesignator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -28330,7 +28690,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DesignatedInitExpr.FieldDesignator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.DesignatedInitExpr.FieldDesignator.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.DesignatedInitExpr.FieldDesignator.__Internal*) _0.__Instance); } @@ -28367,7 +28727,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.DesignatedInitExpr.ArrayOrRangeDesignator managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.DesignatedInitExpr.ArrayOrRangeDesignator managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -28380,11 +28752,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ArrayOrRangeDesignator)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -28404,7 +28776,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ArrayOrRangeDesignator(void* native, bool skipVTables = false) @@ -28418,7 +28790,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DesignatedInitExpr.ArrayOrRangeDesignator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -28426,7 +28798,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DesignatedInitExpr.ArrayOrRangeDesignator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.DesignatedInitExpr.ArrayOrRangeDesignator.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.DesignatedInitExpr.ArrayOrRangeDesignator.__Internal*) _0.__Instance); } @@ -28458,11 +28830,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DesignatedInitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -28482,7 +28854,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DesignatedInitExpr(void* native, bool skipVTables = false) @@ -28495,7 +28867,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DesignatedInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -28504,7 +28876,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DesignatedInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.DesignatedInitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.DesignatedInitExpr.__Internal*) _0.__Instance); } @@ -28630,11 +29002,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (NoInitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -28654,7 +29026,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected NoInitExpr(void* native, bool skipVTables = false) @@ -28667,7 +29039,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.NoInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -28676,7 +29048,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.NoInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.NoInitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.NoInitExpr.__Internal*) _0.__Instance); } } @@ -28723,11 +29095,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DesignatedInitUpdateExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -28747,7 +29119,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DesignatedInitUpdateExpr(void* native, bool skipVTables = false) @@ -28760,7 +29132,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DesignatedInitUpdateExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -28769,7 +29141,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DesignatedInitUpdateExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.DesignatedInitUpdateExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.DesignatedInitUpdateExpr.__Internal*) _0.__Instance); } @@ -28844,11 +29216,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ArrayInitLoopExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -28868,7 +29240,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ArrayInitLoopExpr(void* native, bool skipVTables = false) @@ -28881,7 +29253,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ArrayInitLoopExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -28890,7 +29262,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ArrayInitLoopExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ArrayInitLoopExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ArrayInitLoopExpr.__Internal*) _0.__Instance); } @@ -28963,11 +29335,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ArrayInitIndexExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -28987,7 +29359,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ArrayInitIndexExpr(void* native, bool skipVTables = false) @@ -29000,7 +29372,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ArrayInitIndexExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -29009,7 +29381,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ArrayInitIndexExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ArrayInitIndexExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ArrayInitIndexExpr.__Internal*) _0.__Instance); } } @@ -29054,11 +29426,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ImplicitValueInitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -29078,7 +29450,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ImplicitValueInitExpr(void* native, bool skipVTables = false) @@ -29091,7 +29463,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ImplicitValueInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -29100,7 +29472,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ImplicitValueInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ImplicitValueInitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ImplicitValueInitExpr.__Internal*) _0.__Instance); } } @@ -29148,11 +29520,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ParenListExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -29172,7 +29544,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ParenListExpr(void* native, bool skipVTables = false) @@ -29185,7 +29557,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ParenListExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -29194,7 +29566,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ParenListExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ParenListExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ParenListExpr.__Internal*) _0.__Instance); } @@ -29286,11 +29658,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (GenericSelectionExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -29310,7 +29682,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected GenericSelectionExpr(void* native, bool skipVTables = false) @@ -29323,7 +29695,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.GenericSelectionExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -29332,7 +29704,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.GenericSelectionExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.GenericSelectionExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.GenericSelectionExpr.__Internal*) _0.__Instance); } @@ -29488,11 +29860,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ExtVectorElementExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -29512,7 +29884,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ExtVectorElementExpr(void* native, bool skipVTables = false) @@ -29525,7 +29897,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ExtVectorElementExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -29534,7 +29906,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ExtVectorElementExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ExtVectorElementExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ExtVectorElementExpr.__Internal*) _0.__Instance); } @@ -29647,11 +30019,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (BlockExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -29671,7 +30043,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected BlockExpr(void* native, bool skipVTables = false) @@ -29684,7 +30056,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BlockExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -29693,7 +30065,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BlockExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.BlockExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.BlockExpr.__Internal*) _0.__Instance); } @@ -29768,11 +30140,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (AsTypeExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -29792,7 +30164,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected AsTypeExpr(void* native, bool skipVTables = false) @@ -29805,7 +30177,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AsTypeExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -29814,7 +30186,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AsTypeExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.AsTypeExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.AsTypeExpr.__Internal*) _0.__Instance); } @@ -29903,11 +30275,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (PseudoObjectExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -29927,7 +30299,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected PseudoObjectExpr(void* native, bool skipVTables = false) @@ -29940,7 +30312,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PseudoObjectExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -29949,7 +30321,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PseudoObjectExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.PseudoObjectExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.PseudoObjectExpr.__Internal*) _0.__Instance); } @@ -30113,11 +30485,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (AtomicExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -30137,7 +30509,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected AtomicExpr(void* native, bool skipVTables = false) @@ -30150,7 +30522,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AtomicExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -30159,7 +30531,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AtomicExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.AtomicExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.AtomicExpr.__Internal*) _0.__Instance); } @@ -30408,11 +30780,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TypoExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -30432,7 +30804,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TypoExpr(void* native, bool skipVTables = false) @@ -30445,7 +30817,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypoExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -30454,7 +30826,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypoExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.TypoExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.TypoExpr.__Internal*) _0.__Instance); } } @@ -30515,11 +30887,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXOperatorCallExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -30539,7 +30911,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXOperatorCallExpr(void* native, bool skipVTables = false) @@ -30552,7 +30924,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXOperatorCallExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -30561,7 +30933,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXOperatorCallExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -30690,11 +31062,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXMemberCallExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -30714,7 +31086,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXMemberCallExpr(void* native, bool skipVTables = false) @@ -30727,7 +31099,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXMemberCallExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -30736,7 +31108,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXMemberCallExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -30840,11 +31212,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CUDAKernelCallExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -30864,7 +31236,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CUDAKernelCallExpr(void* native, bool skipVTables = false) @@ -30877,7 +31249,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CUDAKernelCallExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -30886,7 +31258,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CUDAKernelCallExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -30979,11 +31351,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXNamedCastExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -31003,7 +31375,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXNamedCastExpr(void* native, bool skipVTables = false) @@ -31016,7 +31388,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXNamedCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -31025,7 +31397,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXNamedCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -31034,7 +31406,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXNamedCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXNamedCastExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXNamedCastExpr.__Internal*) _0.__Instance); if (_0.__castName_OwnsNativeMemory) this.CastName = _0.CastName; @@ -31164,11 +31536,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXStaticCastExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -31188,7 +31560,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXStaticCastExpr(void* native, bool skipVTables = false) @@ -31201,7 +31573,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXStaticCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -31210,7 +31582,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXStaticCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXStaticCastExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXStaticCastExpr.__Internal*) _0.__Instance); } } @@ -31268,11 +31640,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXDynamicCastExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -31292,7 +31664,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXDynamicCastExpr(void* native, bool skipVTables = false) @@ -31305,7 +31677,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXDynamicCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -31314,7 +31686,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXDynamicCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXDynamicCastExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXDynamicCastExpr.__Internal*) _0.__Instance); } @@ -31384,11 +31756,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXReinterpretCastExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -31408,7 +31780,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXReinterpretCastExpr(void* native, bool skipVTables = false) @@ -31421,7 +31793,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXReinterpretCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -31430,7 +31802,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXReinterpretCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXReinterpretCastExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXReinterpretCastExpr.__Internal*) _0.__Instance); } } @@ -31487,11 +31859,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXConstCastExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -31511,7 +31883,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXConstCastExpr(void* native, bool skipVTables = false) @@ -31524,7 +31896,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXConstCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -31533,7 +31905,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXConstCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXConstCastExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXConstCastExpr.__Internal*) _0.__Instance); } } @@ -31603,11 +31975,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (UserDefinedLiteral)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -31627,7 +31999,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected UserDefinedLiteral(void* native, bool skipVTables = false) @@ -31640,7 +32012,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UserDefinedLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -31649,7 +32021,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UserDefinedLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -31754,11 +32126,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXBoolLiteralExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -31778,7 +32150,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXBoolLiteralExpr(void* native, bool skipVTables = false) @@ -31791,7 +32163,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXBoolLiteralExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -31800,7 +32172,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXBoolLiteralExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXBoolLiteralExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXBoolLiteralExpr.__Internal*) _0.__Instance); } @@ -31872,11 +32244,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXNullPtrLiteralExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -31896,7 +32268,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXNullPtrLiteralExpr(void* native, bool skipVTables = false) @@ -31909,7 +32281,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXNullPtrLiteralExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -31918,7 +32290,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXNullPtrLiteralExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXNullPtrLiteralExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXNullPtrLiteralExpr.__Internal*) _0.__Instance); } @@ -31977,11 +32349,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXStdInitializerListExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -32001,7 +32373,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXStdInitializerListExpr(void* native, bool skipVTables = false) @@ -32014,7 +32386,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXStdInitializerListExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -32023,7 +32395,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXStdInitializerListExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXStdInitializerListExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXStdInitializerListExpr.__Internal*) _0.__Instance); } @@ -32085,11 +32457,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXTypeidExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -32109,7 +32481,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXTypeidExpr(void* native, bool skipVTables = false) @@ -32122,7 +32494,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXTypeidExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -32131,7 +32503,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXTypeidExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXTypeidExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXTypeidExpr.__Internal*) _0.__Instance); } @@ -32220,11 +32592,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (MSPropertyRefExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -32244,7 +32616,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected MSPropertyRefExpr(void* native, bool skipVTables = false) @@ -32257,7 +32629,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MSPropertyRefExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -32266,7 +32638,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MSPropertyRefExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.MSPropertyRefExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.MSPropertyRefExpr.__Internal*) _0.__Instance); } @@ -32367,11 +32739,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (MSPropertySubscriptExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -32391,7 +32763,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected MSPropertySubscriptExpr(void* native, bool skipVTables = false) @@ -32404,7 +32776,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MSPropertySubscriptExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -32413,7 +32785,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MSPropertySubscriptExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.MSPropertySubscriptExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.MSPropertySubscriptExpr.__Internal*) _0.__Instance); } @@ -32505,11 +32877,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXUuidofExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -32529,7 +32901,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXUuidofExpr(void* native, bool skipVTables = false) @@ -32542,7 +32914,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXUuidofExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -32551,7 +32923,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXUuidofExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -32657,11 +33029,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXThisExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -32681,7 +33053,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXThisExpr(void* native, bool skipVTables = false) @@ -32694,7 +33066,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXThisExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -32703,7 +33075,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXThisExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXThisExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXThisExpr.__Internal*) _0.__Instance); } @@ -32777,11 +33149,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXThrowExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -32801,7 +33173,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXThrowExpr(void* native, bool skipVTables = false) @@ -32814,7 +33186,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXThrowExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -32823,7 +33195,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXThrowExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXThrowExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXThrowExpr.__Internal*) _0.__Instance); } @@ -32910,11 +33282,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXDefaultArgExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -32934,7 +33306,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXDefaultArgExpr(void* native, bool skipVTables = false) @@ -32947,7 +33319,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXDefaultArgExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -32956,7 +33328,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXDefaultArgExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXDefaultArgExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXDefaultArgExpr.__Internal*) _0.__Instance); } @@ -33030,11 +33402,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXDefaultInitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -33054,7 +33426,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXDefaultInitExpr(void* native, bool skipVTables = false) @@ -33067,7 +33439,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXDefaultInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -33076,7 +33448,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXDefaultInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXDefaultInitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXDefaultInitExpr.__Internal*) _0.__Instance); } @@ -33150,11 +33522,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXBindTemporaryExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -33174,7 +33546,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXBindTemporaryExpr(void* native, bool skipVTables = false) @@ -33187,7 +33559,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXBindTemporaryExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -33196,7 +33568,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXBindTemporaryExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXBindTemporaryExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXBindTemporaryExpr.__Internal*) _0.__Instance); } @@ -33290,11 +33662,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXConstructExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -33314,7 +33686,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXConstructExpr(void* native, bool skipVTables = false) @@ -33327,7 +33699,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXConstructExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -33336,7 +33708,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXConstructExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -33345,7 +33717,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXConstructExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -33552,11 +33924,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXInheritedCtorInitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -33576,7 +33948,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXInheritedCtorInitExpr(void* native, bool skipVTables = false) @@ -33589,7 +33961,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXInheritedCtorInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -33598,7 +33970,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXInheritedCtorInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXInheritedCtorInitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXInheritedCtorInitExpr.__Internal*) _0.__Instance); } @@ -33693,11 +34065,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXFunctionalCastExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -33717,7 +34089,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXFunctionalCastExpr(void* native, bool skipVTables = false) @@ -33730,7 +34102,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXFunctionalCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -33739,7 +34111,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXFunctionalCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXFunctionalCastExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXFunctionalCastExpr.__Internal*) _0.__Instance); } @@ -33835,11 +34207,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXTemporaryObjectExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -33859,7 +34231,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXTemporaryObjectExpr(void* native, bool skipVTables = false) @@ -33872,7 +34244,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXTemporaryObjectExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -33881,7 +34253,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXTemporaryObjectExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -33969,11 +34341,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (LambdaExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -33993,7 +34365,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected LambdaExpr(void* native, bool skipVTables = false) @@ -34006,7 +34378,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.LambdaExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -34015,7 +34387,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.LambdaExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -34230,11 +34602,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXScalarValueInitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -34254,7 +34626,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXScalarValueInitExpr(void* native, bool skipVTables = false) @@ -34267,7 +34639,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXScalarValueInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -34276,7 +34648,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXScalarValueInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXScalarValueInitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXScalarValueInitExpr.__Internal*) _0.__Instance); } @@ -34371,11 +34743,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXNewExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -34395,7 +34767,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXNewExpr(void* native, bool skipVTables = false) @@ -34408,7 +34780,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXNewExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -34417,7 +34789,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXNewExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -34709,11 +35081,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXDeleteExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -34733,7 +35105,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXDeleteExpr(void* native, bool skipVTables = false) @@ -34746,7 +35118,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXDeleteExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -34755,7 +35127,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXDeleteExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXDeleteExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXDeleteExpr.__Internal*) _0.__Instance); } @@ -34890,11 +35262,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXPseudoDestructorExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -34914,7 +35286,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXPseudoDestructorExpr(void* native, bool skipVTables = false) @@ -34927,7 +35299,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXPseudoDestructorExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -34936,7 +35308,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXPseudoDestructorExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXPseudoDestructorExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXPseudoDestructorExpr.__Internal*) _0.__Instance); } @@ -35090,11 +35462,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TypeTraitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -35114,7 +35486,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TypeTraitExpr(void* native, bool skipVTables = false) @@ -35127,7 +35499,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypeTraitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -35136,7 +35508,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypeTraitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.TypeTraitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.TypeTraitExpr.__Internal*) _0.__Instance); } @@ -35210,11 +35582,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ArrayTypeTraitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -35234,7 +35606,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ArrayTypeTraitExpr(void* native, bool skipVTables = false) @@ -35247,7 +35619,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ArrayTypeTraitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -35256,7 +35628,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ArrayTypeTraitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ArrayTypeTraitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ArrayTypeTraitExpr.__Internal*) _0.__Instance); } @@ -35345,11 +35717,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ExpressionTraitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -35369,7 +35741,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ExpressionTraitExpr(void* native, bool skipVTables = false) @@ -35382,7 +35754,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ExpressionTraitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -35391,7 +35763,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ExpressionTraitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ExpressionTraitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ExpressionTraitExpr.__Internal*) _0.__Instance); } @@ -35479,7 +35851,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.OverloadExpr.FindResult managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.OverloadExpr.FindResult managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -35492,11 +35876,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (FindResult)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -35516,7 +35900,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected FindResult(void* native, bool skipVTables = false) @@ -35530,7 +35914,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.OverloadExpr.FindResult.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -35538,7 +35922,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.OverloadExpr.FindResult.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.OverloadExpr.FindResult.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.OverloadExpr.FindResult.__Internal*) _0.__Instance); } @@ -35570,11 +35954,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (OverloadExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -35594,7 +35978,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected OverloadExpr(void* native, bool skipVTables = false) @@ -35607,7 +35991,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.OverloadExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -35616,7 +36000,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.OverloadExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -35625,7 +36009,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.OverloadExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.OverloadExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.OverloadExpr.__Internal*) _0.__Instance); } @@ -35789,11 +36173,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (UnresolvedLookupExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -35813,7 +36197,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected UnresolvedLookupExpr(void* native, bool skipVTables = false) @@ -35826,7 +36210,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnresolvedLookupExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -35835,7 +36219,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnresolvedLookupExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.UnresolvedLookupExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.UnresolvedLookupExpr.__Internal*) _0.__Instance); } @@ -35913,11 +36297,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DependentScopeDeclRefExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -35937,7 +36321,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DependentScopeDeclRefExpr(void* native, bool skipVTables = false) @@ -35950,7 +36334,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DependentScopeDeclRefExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -35959,7 +36343,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DependentScopeDeclRefExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.DependentScopeDeclRefExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.DependentScopeDeclRefExpr.__Internal*) _0.__Instance); } @@ -36098,11 +36482,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ExprWithCleanups)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -36122,7 +36506,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ExprWithCleanups(void* native, bool skipVTables = false) @@ -36135,7 +36519,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ExprWithCleanups.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -36144,7 +36528,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ExprWithCleanups.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ExprWithCleanups.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ExprWithCleanups.__Internal*) _0.__Instance); } @@ -36236,11 +36620,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXUnresolvedConstructExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -36260,7 +36644,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXUnresolvedConstructExpr(void* native, bool skipVTables = false) @@ -36273,7 +36657,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXUnresolvedConstructExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -36282,7 +36666,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXUnresolvedConstructExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -36455,11 +36839,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXDependentScopeMemberExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -36479,7 +36863,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXDependentScopeMemberExpr(void* native, bool skipVTables = false) @@ -36492,7 +36876,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXDependentScopeMemberExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -36501,7 +36885,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXDependentScopeMemberExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXDependentScopeMemberExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXDependentScopeMemberExpr.__Internal*) _0.__Instance); } @@ -36734,11 +37118,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (UnresolvedMemberExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -36758,7 +37142,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected UnresolvedMemberExpr(void* native, bool skipVTables = false) @@ -36771,7 +37155,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnresolvedMemberExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -36780,7 +37164,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnresolvedMemberExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.UnresolvedMemberExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.UnresolvedMemberExpr.__Internal*) _0.__Instance); } @@ -36921,11 +37305,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXNoexceptExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -36945,7 +37329,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXNoexceptExpr(void* native, bool skipVTables = false) @@ -36958,7 +37342,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXNoexceptExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -36967,7 +37351,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXNoexceptExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXNoexceptExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXNoexceptExpr.__Internal*) _0.__Instance); } @@ -37041,11 +37425,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (PackExpansionExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -37065,7 +37449,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected PackExpansionExpr(void* native, bool skipVTables = false) @@ -37078,7 +37462,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PackExpansionExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -37087,7 +37471,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PackExpansionExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.PackExpansionExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.PackExpansionExpr.__Internal*) _0.__Instance); } @@ -37165,11 +37549,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (SizeOfPackExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -37189,7 +37573,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected SizeOfPackExpr(void* native, bool skipVTables = false) @@ -37202,7 +37586,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SizeOfPackExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -37211,7 +37595,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SizeOfPackExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.SizeOfPackExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.SizeOfPackExpr.__Internal*) _0.__Instance); } @@ -37337,11 +37721,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (SubstNonTypeTemplateParmExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -37361,7 +37745,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected SubstNonTypeTemplateParmExpr(void* native, bool skipVTables = false) @@ -37374,7 +37758,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SubstNonTypeTemplateParmExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -37383,7 +37767,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SubstNonTypeTemplateParmExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.SubstNonTypeTemplateParmExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.SubstNonTypeTemplateParmExpr.__Internal*) _0.__Instance); } @@ -37457,11 +37841,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (SubstNonTypeTemplateParmPackExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -37481,7 +37865,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected SubstNonTypeTemplateParmPackExpr(void* native, bool skipVTables = false) @@ -37494,7 +37878,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SubstNonTypeTemplateParmPackExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -37503,7 +37887,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SubstNonTypeTemplateParmPackExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.SubstNonTypeTemplateParmPackExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.SubstNonTypeTemplateParmPackExpr.__Internal*) _0.__Instance); } @@ -37578,11 +37962,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (FunctionParmPackExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -37602,7 +37986,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected FunctionParmPackExpr(void* native, bool skipVTables = false) @@ -37615,7 +37999,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FunctionParmPackExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -37624,7 +38008,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FunctionParmPackExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.FunctionParmPackExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.FunctionParmPackExpr.__Internal*) _0.__Instance); } @@ -37704,7 +38088,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.MaterializeTemporaryExpr.ExtraState managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.MaterializeTemporaryExpr.ExtraState managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -37717,11 +38113,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ExtraState)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -37741,7 +38137,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ExtraState(void* native, bool skipVTables = false) @@ -37755,7 +38151,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MaterializeTemporaryExpr.ExtraState.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -37763,7 +38159,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MaterializeTemporaryExpr.ExtraState.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.MaterializeTemporaryExpr.ExtraState.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.MaterializeTemporaryExpr.ExtraState.__Internal*) _0.__Instance); } @@ -37795,11 +38191,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (MaterializeTemporaryExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -37819,7 +38215,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected MaterializeTemporaryExpr(void* native, bool skipVTables = false) @@ -37832,7 +38228,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MaterializeTemporaryExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -37841,7 +38237,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MaterializeTemporaryExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.MaterializeTemporaryExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.MaterializeTemporaryExpr.__Internal*) _0.__Instance); } @@ -37948,11 +38344,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXFoldExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -37972,7 +38368,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXFoldExpr(void* native, bool skipVTables = false) @@ -37985,7 +38381,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXFoldExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -37994,7 +38390,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXFoldExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXFoldExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXFoldExpr.__Internal*) _0.__Instance); } @@ -38165,11 +38561,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CoroutineSuspendExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -38189,7 +38585,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CoroutineSuspendExpr(void* native, bool skipVTables = false) @@ -38202,7 +38598,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoroutineSuspendExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -38211,7 +38607,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoroutineSuspendExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -38220,7 +38616,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoroutineSuspendExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CoroutineSuspendExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CoroutineSuspendExpr.__Internal*) _0.__Instance); } @@ -38361,11 +38757,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CoawaitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -38385,7 +38781,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CoawaitExpr(void* native, bool skipVTables = false) @@ -38398,7 +38794,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoawaitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -38407,7 +38803,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoawaitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CoawaitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CoawaitExpr.__Internal*) _0.__Instance); } @@ -38482,11 +38878,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DependentCoawaitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -38506,7 +38902,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DependentCoawaitExpr(void* native, bool skipVTables = false) @@ -38519,7 +38915,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DependentCoawaitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -38528,7 +38924,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DependentCoawaitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.DependentCoawaitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.DependentCoawaitExpr.__Internal*) _0.__Instance); } @@ -38621,11 +39017,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CoyieldExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -38645,7 +39041,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CoyieldExpr(void* native, bool skipVTables = false) @@ -38658,7 +39054,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoyieldExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -38667,7 +39063,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoyieldExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CoyieldExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CoyieldExpr.__Internal*) _0.__Instance); } @@ -38767,7 +39163,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.ParserTargetInfo managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.ParserTargetInfo managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -38780,11 +39188,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ParserTargetInfo)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -38804,7 +39212,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ParserTargetInfo(void* native, bool skipVTables = false) @@ -38818,7 +39226,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.ParserTargetInfo.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -38826,7 +39234,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.ParserTargetInfo.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -39427,7 +39835,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.Parser managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.Parser managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -39440,11 +39860,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Parser)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -39464,7 +39884,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Parser(void* native, bool skipVTables = false) @@ -39477,7 +39897,7 @@ namespace CppSharp public unsafe partial class CppParserOptions : IDisposable { - [StructLayout(LayoutKind.Sequential, Size = 264)] + [StructLayout(LayoutKind.Sequential, Size = 288)] public partial struct __Internal { internal global::Std.Vector.__Internalc__N_std_N___1_S_vector____N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C___N_std_N___1_S_allocator__S0_ Arguments; @@ -39488,6 +39908,7 @@ namespace CppSharp internal global::Std.Vector.__Internalc__N_std_N___1_S_vector____N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C___N_std_N___1_S_allocator__S0_ Defines; internal global::Std.Vector.__Internalc__N_std_N___1_S_vector____N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C___N_std_N___1_S_allocator__S0_ Undefines; internal global::Std.Vector.__Internalc__N_std_N___1_S_vector____N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C___N_std_N___1_S_allocator__S0_ SupportedStdTypes; + internal global::Std.Vector.__Internalc__N_std_N___1_S_vector____N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C___N_std_N___1_S_allocator__S0_ SupportedFunctionTemplates; internal __IntPtr ASTContext; internal int toolSetToUse; internal global::Std.BasicString.__Internalc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C targetTriple; @@ -39582,6 +40003,15 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser16CppParserOptions22clearSupportedStdTypesEv", CallingConvention = __CallingConvention.Cdecl)] internal static extern void ClearSupportedStdTypes(__IntPtr __instance); + [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser16CppParserOptions29getSupportedFunctionTemplatesEj", CallingConvention = __CallingConvention.Cdecl)] + internal static extern __IntPtr GetSupportedFunctionTemplates(__IntPtr __instance, uint i); + + [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser16CppParserOptions29addSupportedFunctionTemplatesEPKc", CallingConvention = __CallingConvention.Cdecl)] + internal static extern void AddSupportedFunctionTemplates(__IntPtr __instance, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(CppSharp.Runtime.UTF8Marshaller))] string s); + + [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser16CppParserOptions31clearSupportedFunctionTemplatesEv", CallingConvention = __CallingConvention.Cdecl)] + internal static extern void ClearSupportedFunctionTemplates(__IntPtr __instance); + [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser16CppParserOptions15getClangVersionEv", CallingConvention = __CallingConvention.Cdecl)] internal static extern void GetClangVersion(__IntPtr @return, __IntPtr __instance); @@ -39608,11 +40038,26 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser16CppParserOptions25getSupportedStdTypesCountEv", CallingConvention = __CallingConvention.Cdecl)] internal static extern uint GetSupportedStdTypesCount(__IntPtr __instance); + + [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser16CppParserOptions34getSupportedFunctionTemplatesCountEv", CallingConvention = __CallingConvention.Cdecl)] + internal static extern uint GetSupportedFunctionTemplatesCount(__IntPtr __instance); } public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.CppParserOptions managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.CppParserOptions managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -39625,11 +40070,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CppParserOptions)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -39649,7 +40094,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CppParserOptions(void* native, bool skipVTables = false) @@ -39663,7 +40108,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.CppParserOptions.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -39671,7 +40116,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.CppParserOptions.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -39826,6 +40271,22 @@ namespace CppSharp __Internal.ClearSupportedStdTypes(__Instance); } + public string GetSupportedFunctionTemplates(uint i) + { + var __ret = __Internal.GetSupportedFunctionTemplates(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + } + + public void AddSupportedFunctionTemplates(string s) + { + __Internal.AddSupportedFunctionTemplates(__Instance, s); + } + + public void ClearSupportedFunctionTemplates() + { + __Internal.ClearSupportedFunctionTemplates(__Instance); + } + public global::CppSharp.Parser.AST.ASTContext ASTContext { get @@ -40055,6 +40516,15 @@ namespace CppSharp return __ret; } } + + public uint SupportedFunctionTemplatesCount + { + get + { + var __ret = __Internal.GetSupportedFunctionTemplatesCount(__Instance); + return __ret; + } + } } public unsafe partial class CppLinkerOptions : IDisposable @@ -40114,7 +40584,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.CppLinkerOptions managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.CppLinkerOptions managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -40127,11 +40609,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CppLinkerOptions)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -40151,7 +40633,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CppLinkerOptions(void* native, bool skipVTables = false) @@ -40165,7 +40647,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.CppLinkerOptions.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -40173,7 +40655,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.CppLinkerOptions.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -40299,7 +40781,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.ParserDiagnostic managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.ParserDiagnostic managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -40312,11 +40806,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ParserDiagnostic)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -40336,7 +40830,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ParserDiagnostic(void* native, bool skipVTables = false) @@ -40350,7 +40844,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.ParserDiagnostic.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -40358,7 +40852,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.ParserDiagnostic.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -40499,7 +40993,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.ParserResult managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.ParserResult managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -40512,11 +41018,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ParserResult)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -40536,7 +41042,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ParserResult(void* native, bool skipVTables = false) @@ -40550,7 +41056,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.ParserResult.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -40558,7 +41064,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.ParserResult.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -40700,7 +41206,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.ClangParser managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.ClangParser managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -40713,11 +41231,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ClangParser)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -40737,7 +41255,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ClangParser(void* native, bool skipVTables = false) @@ -40751,14 +41269,14 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.ClangParser.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } public ClangParser(global::CppSharp.Parser.ClangParser _0) { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.ClangParser.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.ClangParser.__Internal*) __Instance) = *((global::CppSharp.Parser.ClangParser.__Internal*) _0.__Instance); } @@ -40839,23 +41357,582 @@ namespace CppSharp namespace Std { - namespace __1 + namespace CompressedPair { - namespace Pair + [StructLayout(LayoutKind.Sequential, Size = 8)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_NativeLibrary___N_std_N___1_S_allocator__S1_ { - [StructLayout(LayoutKind.Sequential, Size = 32)] - public unsafe partial struct __Internalc__N_std_N___1_S_pair____N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C____N_CppSharp_N_CppParser_N_AST_S_Declaration - { - internal global::Std.BasicString.__Internalc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C first; - internal __IntPtr second; - } + internal __IntPtr __value_; + } - [StructLayout(LayoutKind.Sequential, Size = 32)] - public unsafe partial struct __Internalc__N_std_N___1_S_pair__1__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C____N_CppSharp_N_CppParser_N_AST_S_Declaration - { - internal global::Std.BasicString.__Internalc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C first; - internal __IntPtr second; - } + [StructLayout(LayoutKind.Sequential, Size = 8)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_S_ParserDiagnostic___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 8)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_N_AST_S_HTMLStartTagComment_S_Attribute___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 8)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_N_AST_S_InlineCommandComment_S_Argument___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 8)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_VerbatimBlockLineComment___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 8)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_N_AST_S_BlockCommandComment_S_Argument___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 8)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_InlineContentComment___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 8)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Expr___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 8)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Stmt___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 8)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_TranslationUnit___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 8)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_MacroDefinition___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 8)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_VarTemplateSpecialization___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 8)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_ExpressionObsolete___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 8)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_ClassTemplateSpecialization___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 8)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Namespace___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 8)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Enumeration___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 8)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Enumeration_S_Item___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 8)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Function___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 8)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Class___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 8)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_N_AST_S_LayoutBase___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 8)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_N_AST_S_LayoutField___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 8)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_N_AST_S_VFTableInfo___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 8)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_N_AST_S_VTableComponent___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 8)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_AccessSpecifierDecl___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 8)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Method___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 8)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_N_AST_S_TemplateArgument___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 8)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_FunctionTemplateSpecialization___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 8)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Parameter___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 8)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Field___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 8)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_BaseClassSpecifier___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 8)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair__l___N_std_N___1_S___map_value_compare____N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C___N_std_N___1_U___value_type__S1_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_N___1_S_less__S1__Vb1 + { + internal ulong __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 8)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair____N_std_N___1_S___tree_end_node_____N_std_N___1_S___tree_node_base___v___N_std_N___1_S_allocator____N_std_N___1_S___tree_node____N_std_N___1_U___value_type____N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C____N_CppSharp_N_CppParser_N_AST_S_Declaration_S3_ + { + internal global::Std.TreeEndNode.__Internal_Ptr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 8)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Friend___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 8)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Variable___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 8)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_TypeAlias___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 8)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_TypedefDecl___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 8)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Template___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 8)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_BlockContentComment___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 8)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + + [StructLayout(LayoutKind.Sequential, Size = 8)] + public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_N___1_S_allocator__S1_ + { + internal __IntPtr __value_; + } + } + +} +namespace Std +{ + namespace Vector + { + [StructLayout(LayoutKind.Sequential, Size = 24)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_NativeLibrary___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_NativeLibrary___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 24)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_S_ParserDiagnostic___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_S_ParserDiagnostic___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 24)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_N_AST_S_HTMLStartTagComment_S_Attribute___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_N_AST_S_HTMLStartTagComment_S_Attribute___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 24)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_N_AST_S_InlineCommandComment_S_Argument___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_N_AST_S_InlineCommandComment_S_Argument___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 24)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_VerbatimBlockLineComment___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_VerbatimBlockLineComment___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 24)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_N_AST_S_BlockCommandComment_S_Argument___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_N_AST_S_BlockCommandComment_S_Argument___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 24)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_InlineContentComment___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_InlineContentComment___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 24)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Expr___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Expr___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 24)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Stmt___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Stmt___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 24)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TranslationUnit___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_TranslationUnit___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 24)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_MacroDefinition___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_MacroDefinition___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 24)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_VarTemplateSpecialization___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_VarTemplateSpecialization___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 24)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_ExpressionObsolete___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_ExpressionObsolete___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 24)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_ClassTemplateSpecialization___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_ClassTemplateSpecialization___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 24)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Enumeration_S_Item___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Enumeration_S_Item___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 24)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_N_AST_S_LayoutBase___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_N_AST_S_LayoutBase___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 24)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_N_AST_S_LayoutField___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_N_AST_S_LayoutField___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 24)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_N_AST_S_VTableComponent___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_N_AST_S_VTableComponent___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 24)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_N_AST_S_VFTableInfo___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_N_AST_S_VFTableInfo___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 24)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_AccessSpecifierDecl___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_AccessSpecifierDecl___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 24)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_N_AST_S_TemplateArgument___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_N_AST_S_TemplateArgument___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 24)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_FunctionTemplateSpecialization___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_FunctionTemplateSpecialization___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 24)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Parameter___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Parameter___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 24)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Method___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Method___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 24)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Field___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Field___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 24)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_BaseClassSpecifier___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_BaseClassSpecifier___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 24)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Friend___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Friend___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 24)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Variable___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Variable___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 24)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TypeAlias___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_TypeAlias___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 24)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TypedefDecl___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_TypedefDecl___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 24)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Template___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Template___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 24)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Class___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Class___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 24)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Function___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Function___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 24)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Enumeration___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Enumeration___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 24)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Namespace___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Namespace___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 24)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_BlockContentComment___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_BlockContentComment___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 24)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_N___1_S_allocator__S1_ __end_cap_; + } + + [StructLayout(LayoutKind.Sequential, Size = 24)] + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_; + internal __IntPtr __end_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_N___1_S_allocator__S1_ __end_cap_; + } + } + +} +namespace Std +{ + namespace Tree + { + [StructLayout(LayoutKind.Sequential, Size = 24)] + public unsafe partial struct __Internalc__N_std_N___1_S___tree____N_std_N___1_U___value_type____N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_N___1_S___map_value_compare__S1__S0____N_std_N___1_S_less__S1__Vb1___N_std_N___1_S_allocator__S0_ + { + internal __IntPtr __begin_node_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair____N_std_N___1_S___tree_end_node_____N_std_N___1_S___tree_node_base___v___N_std_N___1_S_allocator____N_std_N___1_S___tree_node____N_std_N___1_U___value_type____N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C____N_CppSharp_N_CppParser_N_AST_S_Declaration_S3_ __pair1_; + internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair__l___N_std_N___1_S___map_value_compare____N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C___N_std_N___1_U___value_type__S1_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_N___1_S_less__S1__Vb1 __pair3_; + } + } + +} +namespace Std +{ + namespace Map + { + [StructLayout(LayoutKind.Sequential, Size = 24)] + public unsafe partial struct __Internalc__N_std_N___1_S_map____N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_N___1_S_less__S0____N_std_N___1_S_allocator____N_std_N___1_S_pair__1S0__S3_ + { + internal global::Std.Tree.__Internalc__N_std_N___1_S___tree____N_std_N___1_U___value_type____N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_N___1_S___map_value_compare__S1__S0____N_std_N___1_S_less__S1__Vb1___N_std_N___1_S_allocator__S0_ __tree_; } } } diff --git a/src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/Std.cs b/src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/Std.cs index 6d49ce24..c3b49d4b 100644 --- a/src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/Std.cs +++ b/src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/Std.cs @@ -41,257 +41,17 @@ namespace Std internal global::Std.BasicString.Rep.__Internalc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C __value_; } - [StructLayout(LayoutKind.Sequential, Size = 8)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 8)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 8)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_BlockContentComment___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 8)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Template___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 8)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_TypedefDecl___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 8)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_TypeAlias___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 8)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Variable___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 8)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Friend___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 8)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair____N_std_N___1_S___tree_end_node_____N_std_N___1_S___tree_node_base___v___N_std_N___1_S_allocator____N_std_N___1_S___tree_node____N_std_N___1_U___value_type____N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C____N_CppSharp_N_CppParser_N_AST_S_Declaration_S3_ - { - internal global::Std.TreeEndNode.__Internal_Ptr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 8)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair__l___N_std_N___1_S___map_value_compare____N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C___N_std_N___1_U___value_type__S1_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_N___1_S_less__S1__Vb1 - { - internal ulong __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 8)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_BaseClassSpecifier___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 8)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Field___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 8)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Parameter___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 8)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_FunctionTemplateSpecialization___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 8)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_N_AST_S_TemplateArgument___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 8)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Method___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 8)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_AccessSpecifierDecl___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 8)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_N_AST_S_VTableComponent___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 8)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_N_AST_S_VFTableInfo___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 8)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_N_AST_S_LayoutField___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 8)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_N_AST_S_LayoutBase___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 8)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Class___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 8)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Function___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 8)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Enumeration_S_Item___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 8)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Enumeration___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 8)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Namespace___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - [StructLayout(LayoutKind.Sequential, Size = 8)] public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair_____N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C___N_std_N___1_S_allocator__S1_ { internal __IntPtr __value_; } - [StructLayout(LayoutKind.Sequential, Size = 8)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_ClassTemplateSpecialization___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 8)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_ExpressionObsolete___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 8)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_VarTemplateSpecialization___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 8)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_MacroDefinition___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 8)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_TranslationUnit___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 8)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Stmt___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 8)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Expr___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 8)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_InlineContentComment___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 8)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_N_AST_S_BlockCommandComment_S_Argument___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - [StructLayout(LayoutKind.Sequential, Size = 8)] public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair___i___N_std_N___1_S_allocator__i { internal __IntPtr __value_; } - - [StructLayout(LayoutKind.Sequential, Size = 8)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_VerbatimBlockLineComment___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 8)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_N_AST_S_InlineCommandComment_S_Argument___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 8)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_N_AST_S_HTMLStartTagComment_S_Attribute___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 8)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_S_ParserDiagnostic___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } - - [StructLayout(LayoutKind.Sequential, Size = 8)] - public unsafe partial struct __Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_NativeLibrary___N_std_N___1_S_allocator__S1_ - { - internal __IntPtr __value_; - } } namespace Allocator @@ -308,7 +68,19 @@ namespace Std { public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary> NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary>(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary> NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary>(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::Std.Allocator<_Tp> managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::Std.Allocator<_Tp> managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -321,11 +93,11 @@ namespace Std { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Allocator<_Tp>)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -345,7 +117,7 @@ namespace Std : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Allocator(void* native, bool skipVTables = false) @@ -362,7 +134,7 @@ namespace Std { __Instance = Marshal.AllocHGlobal(sizeof(global::Std.Allocator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); global::Std.Allocator.__Internal.ctorc__N_std_N___1_S_allocator__C(__Instance); return; } @@ -393,198 +165,6 @@ namespace Std { namespace Vector { - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_BlockContentComment___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_BlockContentComment___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Namespace___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Namespace___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Enumeration___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Enumeration___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Function___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Function___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Class___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Class___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Template___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Template___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TypedefDecl___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_TypedefDecl___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TypeAlias___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_TypeAlias___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Variable___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Variable___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Friend___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Friend___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_BaseClassSpecifier___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_BaseClassSpecifier___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Field___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Field___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Method___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Method___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Parameter___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Parameter___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_FunctionTemplateSpecialization___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_FunctionTemplateSpecialization___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_N_AST_S_TemplateArgument___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_N_AST_S_TemplateArgument___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_AccessSpecifierDecl___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_AccessSpecifierDecl___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_N_AST_S_VFTableInfo___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_N_AST_S_VFTableInfo___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_N_AST_S_VTableComponent___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_N_AST_S_VTableComponent___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_N_AST_S_LayoutField___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_N_AST_S_LayoutField___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_N_AST_S_LayoutBase___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_N_AST_S_LayoutBase___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Enumeration_S_Item___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Enumeration_S_Item___N_std_N___1_S_allocator__S1_ __end_cap_; - } - [StructLayout(LayoutKind.Sequential, Size = 24)] public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C___N_std_N___1_S_allocator__S0_ { @@ -593,78 +173,6 @@ namespace Std internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair_____N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C___N_std_N___1_S_allocator__S1_ __end_cap_; } - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_ClassTemplateSpecialization___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_ClassTemplateSpecialization___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_ExpressionObsolete___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_ExpressionObsolete___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_VarTemplateSpecialization___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_VarTemplateSpecialization___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_MacroDefinition___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_MacroDefinition___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TranslationUnit___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_TranslationUnit___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Stmt___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Stmt___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Expr___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_Expr___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_InlineContentComment___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_InlineContentComment___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_N_AST_S_BlockCommandComment_S_Argument___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_N_AST_S_BlockCommandComment_S_Argument___N_std_N___1_S_allocator__S1_ __end_cap_; - } - [StructLayout(LayoutKind.Sequential, Size = 24)] public unsafe partial struct __Internalc__N_std_N___1_S_vector__i___N_std_N___1_S_allocator__i { @@ -672,62 +180,11 @@ namespace Std internal __IntPtr __end_; internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair___i___N_std_N___1_S_allocator__i __end_cap_; } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_VerbatimBlockLineComment___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_VerbatimBlockLineComment___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_N_AST_S_InlineCommandComment_S_Argument___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_N_AST_S_InlineCommandComment_S_Argument___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_N_AST_S_HTMLStartTagComment_S_Attribute___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_N_AST_S_HTMLStartTagComment_S_Attribute___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_S_ParserDiagnostic___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair_____N_CppSharp_N_CppParser_S_ParserDiagnostic___N_std_N___1_S_allocator__S1_ __end_cap_; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_NativeLibrary___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_; - internal __IntPtr __end_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair______N_CppSharp_N_CppParser_N_AST_S_NativeLibrary___N_std_N___1_S_allocator__S1_ __end_cap_; - } } } namespace Std { - namespace Tree - { - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S___tree____N_std_N___1_U___value_type____N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_N___1_S___map_value_compare__S1__S0____N_std_N___1_S_less__S1__Vb1___N_std_N___1_S_allocator__S0_ - { - internal __IntPtr __begin_node_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair____N_std_N___1_S___tree_end_node_____N_std_N___1_S___tree_node_base___v___N_std_N___1_S_allocator____N_std_N___1_S___tree_node____N_std_N___1_U___value_type____N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C____N_CppSharp_N_CppParser_N_AST_S_Declaration_S3_ __pair1_; - internal global::Std.CompressedPair.__Internalc__N_std_N___1_S___compressed_pair__l___N_std_N___1_S___map_value_compare____N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C___N_std_N___1_U___value_type__S1_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_N___1_S_less__S1__Vb1 __pair3_; - } - } - namespace TreeEndNode { [StructLayout(LayoutKind.Sequential, Size = 8)] @@ -740,14 +197,6 @@ namespace Std namespace Std { - namespace Map - { - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_map____N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_N___1_S_less__S0____N_std_N___1_S_allocator____N_std_N___1_S_pair__1S0__S3_ - { - internal global::Std.Tree.__Internalc__N_std_N___1_S___tree____N_std_N___1_U___value_type____N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_N___1_S___map_value_compare__S1__S0____N_std_N___1_S_less__S1__Vb1___N_std_N___1_S_allocator__S0_ __tree_; - } - } } namespace Std @@ -764,7 +213,19 @@ namespace Std { public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary> NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary>(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary> NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary>(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::Std.CharTraits<_CharT> managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::Std.CharTraits<_CharT> managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -777,11 +238,11 @@ namespace Std { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CharTraits<_CharT>)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -801,7 +262,7 @@ namespace Std : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CharTraits(void* native, bool skipVTables = false) @@ -849,10 +310,17 @@ namespace Std namespace Rep { - [StructLayout(LayoutKind.Sequential, Size = 24)] + [StructLayout(LayoutKind.Explicit, Size = 24)] public unsafe partial struct __Internalc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C { - internal global::Std.BasicString.Rep._0.__Internal _0; + [FieldOffset(0)] + internal global::Std.BasicString.Long.__Internal __l; + + [FieldOffset(0)] + internal global::Std.BasicString.Short.__Internalc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C __s; + + [FieldOffset(0)] + internal global::Std.BasicString.Raw.__Internal __r; } namespace _0 @@ -888,10 +356,16 @@ namespace Std namespace Short { - [StructLayout(LayoutKind.Sequential, Size = 24)] + [StructLayout(LayoutKind.Explicit, Size = 24)] public unsafe partial struct __Internalc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C { - internal global::Std.BasicString.Short._0.__Internal _0; + [FieldOffset(0)] + internal byte __size_; + + [FieldOffset(0)] + internal sbyte __lx; + + [FieldOffset(1)] internal fixed sbyte __data_[23]; } @@ -926,7 +400,19 @@ namespace Std { public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary> NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary>(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary> NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary>(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::Std.BasicString<_CharT, _Traits, _Allocator> managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::Std.BasicString<_CharT, _Traits, _Allocator> managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -939,11 +425,11 @@ namespace Std { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (BasicString<_CharT, _Traits, _Allocator>)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -963,7 +449,7 @@ namespace Std : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected BasicString(void* native, bool skipVTables = false) @@ -982,7 +468,7 @@ namespace Std { __Instance = Marshal.AllocHGlobal(sizeof(global::Std.BasicString.__Internalc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); global::Std.BasicString.__Internalc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C.ctorc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C(__Instance); return; } diff --git a/src/CppParser/Bindings/CSharp/x86_64-linux-gnu-cxx11abi/CppSharp.CppParser.cs b/src/CppParser/Bindings/CSharp/x86_64-linux-gnu-cxx11abi/CppSharp.CppParser.cs index 48ca7315..82844c10 100644 --- a/src/CppParser/Bindings/CSharp/x86_64-linux-gnu-cxx11abi/CppSharp.CppParser.cs +++ b/src/CppParser/Bindings/CSharp/x86_64-linux-gnu-cxx11abi/CppSharp.CppParser.cs @@ -64,8 +64,8 @@ namespace CppSharp { internal global::Std.BasicString.__Internalc__N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C fileName; internal global::CppSharp.Parser.AST.ArchType archType; - internal global::Std.Vector.__Internalc__N_std_S_vector____N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C___N_std_S_allocator__S0_ Symbols; - internal global::Std.Vector.__Internalc__N_std_S_vector____N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C___N_std_S_allocator__S0_ Dependencies; + internal global::Std.Vector.__Internal Symbols; + internal global::Std.Vector.__Internal Dependencies; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST13NativeLibraryC2Ev", CallingConvention = __CallingConvention.Cdecl)] internal static extern void ctor(__IntPtr __instance); @@ -103,7 +103,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.NativeLibrary managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.NativeLibrary managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -116,11 +128,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (NativeLibrary)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -140,7 +152,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected NativeLibrary(void* native, bool skipVTables = false) @@ -154,7 +166,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.NativeLibrary.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -162,7 +174,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.NativeLibrary.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -283,7 +295,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.Comment managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.Comment managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -296,11 +320,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Comment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -320,7 +344,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Comment(void* native, bool skipVTables = false) @@ -334,7 +358,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Comment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, kind); } @@ -342,7 +366,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Comment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.Comment.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.Comment.__Internal*) _0.__Instance); } @@ -409,11 +433,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (BlockContentComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -433,7 +457,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected BlockContentComment(void* native, bool skipVTables = false) @@ -446,7 +470,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BlockContentComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -455,7 +479,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BlockContentComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, Kind); } @@ -464,7 +488,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BlockContentComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.BlockContentComment.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.BlockContentComment.__Internal*) _0.__Instance); } @@ -480,7 +504,7 @@ namespace CppSharp public new partial struct __Internal { internal global::CppSharp.Parser.AST.CommentKind kind; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_BlockContentComment___N_std_S_allocator__S0_ Blocks; + internal global::Std.Vector.__Internal Blocks; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST11FullCommentC2Ev", CallingConvention = __CallingConvention.Cdecl)] internal static extern void ctor(__IntPtr __instance); @@ -513,11 +537,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (FullComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -537,7 +561,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected FullComment(void* native, bool skipVTables = false) @@ -550,7 +574,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FullComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -559,7 +583,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FullComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -639,11 +663,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (InlineContentComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -663,7 +687,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected InlineContentComment(void* native, bool skipVTables = false) @@ -676,7 +700,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.InlineContentComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -685,7 +709,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.InlineContentComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, Kind); } @@ -694,7 +718,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.InlineContentComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.InlineContentComment.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.InlineContentComment.__Internal*) _0.__Instance); } @@ -724,7 +748,7 @@ namespace CppSharp { internal global::CppSharp.Parser.AST.CommentKind kind; internal byte isWhitespace; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_InlineContentComment___N_std_S_allocator__S0_ Content; + internal global::Std.Vector.__Internal Content; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST16ParagraphCommentC2Ev", CallingConvention = __CallingConvention.Cdecl)] internal static extern void ctor(__IntPtr __instance); @@ -757,11 +781,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ParagraphComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -781,7 +805,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ParagraphComment(void* native, bool skipVTables = false) @@ -794,7 +818,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ParagraphComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -803,7 +827,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ParagraphComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -877,7 +901,7 @@ namespace CppSharp internal global::CppSharp.Parser.AST.CommentKind kind; internal uint commandId; internal __IntPtr paragraphComment; - internal global::Std.Vector.__Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_BlockCommandComment_S_Argument___N_std_S_allocator__S0_ Arguments; + internal global::Std.Vector.__Internal Arguments; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST19BlockCommandCommentC2Ev", CallingConvention = __CallingConvention.Cdecl)] internal static extern void ctor(__IntPtr __instance); @@ -923,7 +947,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.BlockCommandComment.Argument managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.BlockCommandComment.Argument managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -936,11 +972,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Argument)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -960,7 +996,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Argument(void* native, bool skipVTables = false) @@ -974,7 +1010,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BlockCommandComment.Argument.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -982,7 +1018,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BlockCommandComment.Argument.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -1033,11 +1069,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (BlockCommandComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -1057,7 +1093,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected BlockCommandComment(void* native, bool skipVTables = false) @@ -1070,7 +1106,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BlockCommandComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -1079,7 +1115,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BlockCommandComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, Kind); } @@ -1088,7 +1124,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BlockCommandComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -1182,7 +1218,7 @@ namespace CppSharp internal global::CppSharp.Parser.AST.CommentKind kind; internal uint commandId; internal __IntPtr paragraphComment; - internal global::Std.Vector.__Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_BlockCommandComment_S_Argument___N_std_S_allocator__S0_ Arguments; + internal global::Std.Vector.__Internal Arguments; internal global::CppSharp.Parser.AST.ParamCommandComment.PassDirection direction; internal uint paramIndex; @@ -1212,11 +1248,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ParamCommandComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -1236,7 +1272,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ParamCommandComment(void* native, bool skipVTables = false) @@ -1249,7 +1285,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ParamCommandComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -1258,7 +1294,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ParamCommandComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -1315,8 +1351,8 @@ namespace CppSharp internal global::CppSharp.Parser.AST.CommentKind kind; internal uint commandId; internal __IntPtr paragraphComment; - internal global::Std.Vector.__Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_BlockCommandComment_S_Argument___N_std_S_allocator__S0_ Arguments; - internal global::Std.Vector.__Internalc__N_std_S_vector__i___N_std_S_allocator__i Position; + internal global::Std.Vector.__Internal Arguments; + internal global::Std.Vector.__Internal Position; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST20TParamCommandCommentC2Ev", CallingConvention = __CallingConvention.Cdecl)] internal static extern void ctor(__IntPtr __instance); @@ -1349,11 +1385,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TParamCommandComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -1373,7 +1409,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TParamCommandComment(void* native, bool skipVTables = false) @@ -1386,7 +1422,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TParamCommandComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -1395,7 +1431,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TParamCommandComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -1474,11 +1510,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (VerbatimBlockLineComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -1498,7 +1534,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected VerbatimBlockLineComment(void* native, bool skipVTables = false) @@ -1511,7 +1547,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VerbatimBlockLineComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -1520,7 +1556,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VerbatimBlockLineComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -1565,8 +1601,8 @@ namespace CppSharp internal global::CppSharp.Parser.AST.CommentKind kind; internal uint commandId; internal __IntPtr paragraphComment; - internal global::Std.Vector.__Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_BlockCommandComment_S_Argument___N_std_S_allocator__S0_ Arguments; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_VerbatimBlockLineComment___N_std_S_allocator__S0_ Lines; + internal global::Std.Vector.__Internal Arguments; + internal global::Std.Vector.__Internal Lines; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST20VerbatimBlockCommentC2Ev", CallingConvention = __CallingConvention.Cdecl)] internal static extern void ctor(__IntPtr __instance); @@ -1599,11 +1635,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (VerbatimBlockComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -1623,7 +1659,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected VerbatimBlockComment(void* native, bool skipVTables = false) @@ -1636,7 +1672,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VerbatimBlockComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -1645,7 +1681,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VerbatimBlockComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -1706,7 +1742,7 @@ namespace CppSharp internal global::CppSharp.Parser.AST.CommentKind kind; internal uint commandId; internal __IntPtr paragraphComment; - internal global::Std.Vector.__Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_BlockCommandComment_S_Argument___N_std_S_allocator__S0_ Arguments; + internal global::Std.Vector.__Internal Arguments; internal global::Std.BasicString.__Internalc__N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C text; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST19VerbatimLineCommentC2Ev", CallingConvention = __CallingConvention.Cdecl)] @@ -1728,11 +1764,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (VerbatimLineComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -1752,7 +1788,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected VerbatimLineComment(void* native, bool skipVTables = false) @@ -1765,7 +1801,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VerbatimLineComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -1774,7 +1810,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VerbatimLineComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -1820,7 +1856,7 @@ namespace CppSharp internal byte hasTrailingNewline; internal uint commandId; internal global::CppSharp.Parser.AST.InlineCommandComment.RenderKind commentRenderKind; - internal global::Std.Vector.__Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_InlineCommandComment_S_Argument___N_std_S_allocator__S0_ Arguments; + internal global::Std.Vector.__Internal Arguments; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST20InlineCommandCommentC2Ev", CallingConvention = __CallingConvention.Cdecl)] internal static extern void ctor(__IntPtr __instance); @@ -1872,7 +1908,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.InlineCommandComment.Argument managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.InlineCommandComment.Argument managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -1885,11 +1933,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Argument)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -1909,7 +1957,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Argument(void* native, bool skipVTables = false) @@ -1923,7 +1971,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.InlineCommandComment.Argument.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -1931,7 +1979,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.InlineCommandComment.Argument.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -1982,11 +2030,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (InlineCommandComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -2006,7 +2054,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected InlineCommandComment(void* native, bool skipVTables = false) @@ -2019,7 +2067,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.InlineCommandComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -2028,7 +2076,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.InlineCommandComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -2135,11 +2183,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (HTMLTagComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -2159,7 +2207,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected HTMLTagComment(void* native, bool skipVTables = false) @@ -2172,7 +2220,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.HTMLTagComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -2181,7 +2229,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.HTMLTagComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, Kind); } @@ -2190,7 +2238,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.HTMLTagComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.HTMLTagComment.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.HTMLTagComment.__Internal*) _0.__Instance); } @@ -2208,7 +2256,7 @@ namespace CppSharp internal global::CppSharp.Parser.AST.CommentKind kind; internal byte hasTrailingNewline; internal global::Std.BasicString.__Internalc__N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C tagName; - internal global::Std.Vector.__Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_HTMLStartTagComment_S_Attribute___N_std_S_allocator__S0_ Attributes; + internal global::Std.Vector.__Internal Attributes; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST19HTMLStartTagCommentC2Ev", CallingConvention = __CallingConvention.Cdecl)] internal static extern void ctor(__IntPtr __instance); @@ -2252,7 +2300,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -2265,11 +2325,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Attribute)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -2289,7 +2349,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Attribute(void* native, bool skipVTables = false) @@ -2303,7 +2363,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -2311,7 +2371,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -2376,11 +2436,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (HTMLStartTagComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -2400,7 +2460,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected HTMLStartTagComment(void* native, bool skipVTables = false) @@ -2413,7 +2473,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.HTMLStartTagComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -2422,7 +2482,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.HTMLStartTagComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -2518,11 +2578,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (HTMLEndTagComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -2542,7 +2602,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected HTMLEndTagComment(void* native, bool skipVTables = false) @@ -2555,7 +2615,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.HTMLEndTagComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -2564,7 +2624,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.HTMLEndTagComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -2629,11 +2689,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TextComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -2653,7 +2713,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TextComment(void* native, bool skipVTables = false) @@ -2666,7 +2726,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TextComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -2675,7 +2735,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TextComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -2734,7 +2794,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.RawComment managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.RawComment managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -2747,11 +2819,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (RawComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -2771,7 +2843,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected RawComment(void* native, bool skipVTables = false) @@ -2785,7 +2857,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.RawComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -2793,7 +2865,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.RawComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -2901,7 +2973,7 @@ namespace CppSharp } private SourceLocation.__Internal __instance; - internal SourceLocation.__Internal __Instance { get { return __instance; } } + internal SourceLocation.__Internal __Instance => __instance; internal static SourceLocation __CreateInstance(__IntPtr native, bool skipVTables = false) { @@ -2980,7 +3052,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.SourceRange managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.SourceRange managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -2993,11 +3077,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (SourceRange)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -3017,7 +3101,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected SourceRange(void* native, bool skipVTables = false) @@ -3031,7 +3115,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.SourceRange.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.SourceRange.__Internal*) __Instance) = *((global::CppSharp.Parser.SourceRange.__Internal*) _0.__Instance); } @@ -3039,7 +3123,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.SourceRange.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -3190,7 +3274,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.Type managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.Type managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -3203,11 +3299,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Type)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -3227,7 +3323,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Type(void* native, bool skipVTables = false) @@ -3241,7 +3337,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Type.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, kind); } @@ -3249,7 +3345,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Type.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -3321,7 +3417,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.TypeQualifiers managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.TypeQualifiers managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -3334,11 +3442,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TypeQualifiers)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -3358,7 +3466,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TypeQualifiers(void* native, bool skipVTables = false) @@ -3372,7 +3480,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypeQualifiers.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.TypeQualifiers.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.TypeQualifiers.__Internal*) _0.__Instance); } @@ -3380,7 +3488,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypeQualifiers.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } public void Dispose() @@ -3458,7 +3566,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.QualifiedType managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.QualifiedType managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -3471,11 +3591,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (QualifiedType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -3495,7 +3615,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected QualifiedType(void* native, bool skipVTables = false) @@ -3509,7 +3629,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.QualifiedType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -3517,7 +3637,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.QualifiedType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.QualifiedType.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.QualifiedType.__Internal*) _0.__Instance); } @@ -3594,11 +3714,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TagType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -3618,7 +3738,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TagType(void* native, bool skipVTables = false) @@ -3631,7 +3751,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TagType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -3640,7 +3760,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TagType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -3698,11 +3818,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ArrayType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -3722,7 +3842,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ArrayType(void* native, bool skipVTables = false) @@ -3735,7 +3855,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ArrayType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -3744,7 +3864,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ArrayType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -3816,7 +3936,7 @@ namespace CppSharp internal global::CppSharp.Parser.AST.QualifiedType.__Internal returnType; internal global::CppSharp.Parser.AST.CallingConvention callingConvention; internal global::CppSharp.Parser.AST.ExceptionSpecType exceptionSpecType; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Parameter___N_std_S_allocator__S0_ Parameters; + internal global::Std.Vector.__Internal Parameters; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST12FunctionTypeC2Ev", CallingConvention = __CallingConvention.Cdecl)] internal static extern void ctor(__IntPtr __instance); @@ -3849,11 +3969,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (FunctionType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -3873,7 +3993,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected FunctionType(void* native, bool skipVTables = false) @@ -3886,7 +4006,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FunctionType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -3895,7 +4015,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FunctionType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -4023,11 +4143,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (PointerType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -4047,7 +4167,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected PointerType(void* native, bool skipVTables = false) @@ -4060,7 +4180,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PointerType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -4069,7 +4189,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PointerType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -4130,11 +4250,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (MemberPointerType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -4154,7 +4274,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected MemberPointerType(void* native, bool skipVTables = false) @@ -4167,7 +4287,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MemberPointerType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -4176,7 +4296,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MemberPointerType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -4224,11 +4344,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TypedefType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -4248,7 +4368,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TypedefType(void* native, bool skipVTables = false) @@ -4261,7 +4381,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypedefType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -4270,7 +4390,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypedefType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -4318,11 +4438,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (AttributedType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -4342,7 +4462,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected AttributedType(void* native, bool skipVTables = false) @@ -4355,7 +4475,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AttributedType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -4364,7 +4484,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AttributedType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -4429,11 +4549,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DecayedType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -4453,7 +4573,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DecayedType(void* native, bool skipVTables = false) @@ -4466,7 +4586,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DecayedType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -4475,7 +4595,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DecayedType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -4559,7 +4679,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.TemplateArgument managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.TemplateArgument managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -4572,11 +4704,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TemplateArgument)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -4596,7 +4728,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TemplateArgument(void* native, bool skipVTables = false) @@ -4610,7 +4742,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateArgument.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -4618,7 +4750,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateArgument.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.TemplateArgument.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.TemplateArgument.__Internal*) _0.__Instance); } @@ -4703,7 +4835,7 @@ namespace CppSharp { internal global::CppSharp.Parser.AST.TypeKind kind; internal byte isDependent; - internal global::Std.Vector.__Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_TemplateArgument___N_std_S_allocator__S0_ Arguments; + internal global::Std.Vector.__Internal Arguments; internal __IntPtr _template; internal global::CppSharp.Parser.AST.QualifiedType.__Internal desugared; @@ -4738,11 +4870,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TemplateSpecializationType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -4762,7 +4894,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TemplateSpecializationType(void* native, bool skipVTables = false) @@ -4775,7 +4907,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateSpecializationType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -4784,7 +4916,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateSpecializationType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -4872,7 +5004,7 @@ namespace CppSharp { internal global::CppSharp.Parser.AST.TypeKind kind; internal byte isDependent; - internal global::Std.Vector.__Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_TemplateArgument___N_std_S_allocator__S0_ Arguments; + internal global::Std.Vector.__Internal Arguments; internal global::CppSharp.Parser.AST.QualifiedType.__Internal desugared; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST35DependentTemplateSpecializationTypeC2Ev", CallingConvention = __CallingConvention.Cdecl)] @@ -4906,11 +5038,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DependentTemplateSpecializationType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -4930,7 +5062,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DependentTemplateSpecializationType(void* native, bool skipVTables = false) @@ -4943,7 +5075,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DependentTemplateSpecializationType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -4952,7 +5084,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DependentTemplateSpecializationType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -5050,11 +5182,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TemplateParameterType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -5074,7 +5206,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TemplateParameterType(void* native, bool skipVTables = false) @@ -5087,7 +5219,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateParameterType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -5096,7 +5228,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateParameterType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -5198,11 +5330,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TemplateParameterSubstitutionType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -5222,7 +5354,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TemplateParameterSubstitutionType(void* native, bool skipVTables = false) @@ -5235,7 +5367,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateParameterSubstitutionType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -5244,7 +5376,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateParameterSubstitutionType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -5307,11 +5439,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (InjectedClassNameType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -5331,7 +5463,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected InjectedClassNameType(void* native, bool skipVTables = false) @@ -5344,7 +5476,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.InjectedClassNameType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -5353,7 +5485,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.InjectedClassNameType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -5419,11 +5551,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DependentNameType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -5443,7 +5575,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DependentNameType(void* native, bool skipVTables = false) @@ -5456,7 +5588,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DependentNameType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -5465,7 +5597,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DependentNameType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -5541,11 +5673,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (PackExpansionType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -5565,7 +5697,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected PackExpansionType(void* native, bool skipVTables = false) @@ -5578,7 +5710,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PackExpansionType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -5587,7 +5719,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PackExpansionType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -5621,11 +5753,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (UnaryTransformType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -5645,7 +5777,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected UnaryTransformType(void* native, bool skipVTables = false) @@ -5658,7 +5790,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnaryTransformType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -5667,7 +5799,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnaryTransformType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -5730,11 +5862,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (UnresolvedUsingType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -5754,7 +5886,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected UnresolvedUsingType(void* native, bool skipVTables = false) @@ -5767,7 +5899,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnresolvedUsingType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -5776,7 +5908,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnresolvedUsingType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -5824,11 +5956,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (VectorType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -5848,7 +5980,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected VectorType(void* native, bool skipVTables = false) @@ -5861,7 +5993,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VectorType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -5870,7 +6002,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VectorType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -5931,11 +6063,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (BuiltinType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -5955,7 +6087,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected BuiltinType(void* native, bool skipVTables = false) @@ -5968,7 +6100,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BuiltinType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -5977,7 +6109,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BuiltinType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -6226,8 +6358,8 @@ namespace CppSharp internal byte isDeprecated; internal __IntPtr completeDeclaration; internal uint definitionOrder; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ PreprocessedEntities; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Redeclarations; + internal global::Std.Vector.__Internal PreprocessedEntities; + internal global::Std.Vector.__Internal Redeclarations; internal __IntPtr originalPtr; internal __IntPtr comment; @@ -6267,7 +6399,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.Declaration managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.Declaration managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -6280,11 +6424,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Declaration)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -6304,7 +6448,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Declaration(void* native, bool skipVTables = false) @@ -6318,7 +6462,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Declaration.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, kind); } @@ -6326,7 +6470,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Declaration.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -6708,19 +6852,19 @@ namespace CppSharp internal byte isDeprecated; internal __IntPtr completeDeclaration; internal uint definitionOrder; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ PreprocessedEntities; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Redeclarations; + internal global::Std.Vector.__Internal PreprocessedEntities; + internal global::Std.Vector.__Internal Redeclarations; internal __IntPtr originalPtr; internal __IntPtr comment; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Namespace___N_std_S_allocator__S0_ Namespaces; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Enumeration___N_std_S_allocator__S0_ Enums; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Function___N_std_S_allocator__S0_ Functions; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Class___N_std_S_allocator__S0_ Classes; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Template___N_std_S_allocator__S0_ Templates; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TypedefDecl___N_std_S_allocator__S0_ Typedefs; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TypeAlias___N_std_S_allocator__S0_ TypeAliases; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Variable___N_std_S_allocator__S0_ Variables; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Friend___N_std_S_allocator__S0_ Friends; + internal global::Std.Vector.__Internal Namespaces; + internal global::Std.Vector.__Internal Enums; + internal global::Std.Vector.__Internal Functions; + internal global::Std.Vector.__Internal Classes; + internal global::Std.Vector.__Internal Templates; + internal global::Std.Vector.__Internal Typedefs; + internal global::Std.Vector.__Internal TypeAliases; + internal global::Std.Vector.__Internal Variables; + internal global::Std.Vector.__Internal Friends; internal global::Std.Map.__Internalc__N_std_S_map____N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_less__S0____N_std_S_allocator____N_std_S_pair__1S0__S3_ anonymous; internal byte isAnonymous; @@ -6851,11 +6995,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DeclarationContext)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -6875,7 +7019,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DeclarationContext(void* native, bool skipVTables = false) @@ -6888,7 +7032,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DeclarationContext.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, kind); } @@ -6897,7 +7041,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DeclarationContext.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -7231,8 +7375,8 @@ namespace CppSharp internal byte isDeprecated; internal __IntPtr completeDeclaration; internal uint definitionOrder; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ PreprocessedEntities; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Redeclarations; + internal global::Std.Vector.__Internal PreprocessedEntities; + internal global::Std.Vector.__Internal Redeclarations; internal __IntPtr originalPtr; internal __IntPtr comment; internal global::CppSharp.Parser.AST.QualifiedType.__Internal qualifiedType; @@ -7256,11 +7400,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TypedefNameDecl)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -7280,7 +7424,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TypedefNameDecl(void* native, bool skipVTables = false) @@ -7293,7 +7437,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypedefNameDecl.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, kind); } @@ -7302,7 +7446,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypedefNameDecl.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -7368,8 +7512,8 @@ namespace CppSharp internal byte isDeprecated; internal __IntPtr completeDeclaration; internal uint definitionOrder; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ PreprocessedEntities; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Redeclarations; + internal global::Std.Vector.__Internal PreprocessedEntities; + internal global::Std.Vector.__Internal Redeclarations; internal __IntPtr originalPtr; internal __IntPtr comment; internal global::CppSharp.Parser.AST.QualifiedType.__Internal qualifiedType; @@ -7393,11 +7537,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TypedefDecl)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -7417,7 +7561,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TypedefDecl(void* native, bool skipVTables = false) @@ -7430,7 +7574,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypedefDecl.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -7439,7 +7583,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypedefDecl.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -7485,8 +7629,8 @@ namespace CppSharp internal byte isDeprecated; internal __IntPtr completeDeclaration; internal uint definitionOrder; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ PreprocessedEntities; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Redeclarations; + internal global::Std.Vector.__Internal PreprocessedEntities; + internal global::Std.Vector.__Internal Redeclarations; internal __IntPtr originalPtr; internal __IntPtr comment; internal global::CppSharp.Parser.AST.QualifiedType.__Internal qualifiedType; @@ -7511,11 +7655,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TypeAlias)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -7535,7 +7679,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TypeAlias(void* native, bool skipVTables = false) @@ -7548,7 +7692,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypeAlias.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -7557,7 +7701,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypeAlias.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -7617,8 +7761,8 @@ namespace CppSharp internal byte isDeprecated; internal __IntPtr completeDeclaration; internal uint definitionOrder; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ PreprocessedEntities; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Redeclarations; + internal global::Std.Vector.__Internal PreprocessedEntities; + internal global::Std.Vector.__Internal Redeclarations; internal __IntPtr originalPtr; internal __IntPtr comment; internal __IntPtr declaration; @@ -7642,11 +7786,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Friend)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -7666,7 +7810,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Friend(void* native, bool skipVTables = false) @@ -7679,7 +7823,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Friend.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -7688,7 +7832,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Friend.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -7746,7 +7890,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.StatementObsolete managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.StatementObsolete managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -7759,11 +7915,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (StatementObsolete)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -7783,7 +7939,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected StatementObsolete(void* native, bool skipVTables = false) @@ -7797,7 +7953,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.StatementObsolete.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, str); var __arg0 = __basicString0.__Instance; @@ -7810,7 +7966,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.StatementObsolete.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -7907,11 +8063,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ExpressionObsolete)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -7931,7 +8087,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ExpressionObsolete(void* native, bool skipVTables = false) @@ -7944,7 +8100,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ExpressionObsolete.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, str); var __arg0 = __basicString0.__Instance; @@ -7958,7 +8114,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ExpressionObsolete.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -8012,11 +8168,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (BinaryOperatorObsolete)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -8036,7 +8192,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected BinaryOperatorObsolete(void* native, bool skipVTables = false) @@ -8049,7 +8205,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BinaryOperatorObsolete.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, str); var __arg0 = __basicString0.__Instance; @@ -8068,7 +8224,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BinaryOperatorObsolete.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -8141,7 +8297,7 @@ namespace CppSharp internal global::CppSharp.Parser.AST.StatementClassObsolete _class; internal __IntPtr decl; internal global::Std.BasicString.__Internalc__N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C @string; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_ExpressionObsolete___N_std_S_allocator__S0_ Arguments; + internal global::Std.Vector.__Internal Arguments; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST16CallExprObsoleteC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPNS1_11DeclarationE", CallingConvention = __CallingConvention.Cdecl)] internal static extern void ctor(__IntPtr __instance, __IntPtr str, __IntPtr decl); @@ -8174,11 +8330,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CallExprObsolete)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -8198,7 +8354,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CallExprObsolete(void* native, bool skipVTables = false) @@ -8211,7 +8367,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CallExprObsolete.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, str); var __arg0 = __basicString0.__Instance; @@ -8225,7 +8381,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CallExprObsolete.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -8286,7 +8442,7 @@ namespace CppSharp internal global::CppSharp.Parser.AST.StatementClassObsolete _class; internal __IntPtr decl; internal global::Std.BasicString.__Internalc__N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C @string; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_ExpressionObsolete___N_std_S_allocator__S0_ Arguments; + internal global::Std.Vector.__Internal Arguments; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST24CXXConstructExprObsoleteC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPNS1_11DeclarationE", CallingConvention = __CallingConvention.Cdecl)] internal static extern void ctor(__IntPtr __instance, __IntPtr str, __IntPtr decl); @@ -8319,11 +8475,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXConstructExprObsolete)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -8343,7 +8499,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXConstructExprObsolete(void* native, bool skipVTables = false) @@ -8356,7 +8512,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXConstructExprObsolete.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, str); var __arg0 = __basicString0.__Instance; @@ -8370,7 +8526,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXConstructExprObsolete.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -8446,8 +8602,8 @@ namespace CppSharp internal byte isDeprecated; internal __IntPtr completeDeclaration; internal uint definitionOrder; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ PreprocessedEntities; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Redeclarations; + internal global::Std.Vector.__Internal PreprocessedEntities; + internal global::Std.Vector.__Internal Redeclarations; internal __IntPtr originalPtr; internal __IntPtr comment; internal global::CppSharp.Parser.AST.QualifiedType.__Internal qualifiedType; @@ -8476,11 +8632,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Parameter)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -8500,7 +8656,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Parameter(void* native, bool skipVTables = false) @@ -8513,7 +8669,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Parameter.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -8522,7 +8678,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Parameter.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -8650,19 +8806,19 @@ namespace CppSharp internal byte isDeprecated; internal __IntPtr completeDeclaration; internal uint definitionOrder; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ PreprocessedEntities; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Redeclarations; + internal global::Std.Vector.__Internal PreprocessedEntities; + internal global::Std.Vector.__Internal Redeclarations; internal __IntPtr originalPtr; internal __IntPtr comment; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Namespace___N_std_S_allocator__S0_ Namespaces; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Enumeration___N_std_S_allocator__S0_ Enums; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Function___N_std_S_allocator__S0_ Functions; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Class___N_std_S_allocator__S0_ Classes; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Template___N_std_S_allocator__S0_ Templates; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TypedefDecl___N_std_S_allocator__S0_ Typedefs; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TypeAlias___N_std_S_allocator__S0_ TypeAliases; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Variable___N_std_S_allocator__S0_ Variables; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Friend___N_std_S_allocator__S0_ Friends; + internal global::Std.Vector.__Internal Namespaces; + internal global::Std.Vector.__Internal Enums; + internal global::Std.Vector.__Internal Functions; + internal global::Std.Vector.__Internal Classes; + internal global::Std.Vector.__Internal Templates; + internal global::Std.Vector.__Internal Typedefs; + internal global::Std.Vector.__Internal TypeAliases; + internal global::Std.Vector.__Internal Variables; + internal global::Std.Vector.__Internal Friends; internal global::Std.Map.__Internalc__N_std_S_map____N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_less__S0____N_std_S_allocator____N_std_S_pair__1S0__S3_ anonymous; internal byte isAnonymous; internal global::CppSharp.Parser.AST.QualifiedType.__Internal returnType; @@ -8681,7 +8837,7 @@ namespace CppSharp internal global::Std.BasicString.__Internalc__N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C body; internal __IntPtr bodyStmt; internal global::CppSharp.Parser.AST.CallingConvention callingConvention; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Parameter___N_std_S_allocator__S0_ Parameters; + internal global::Std.Vector.__Internal Parameters; internal __IntPtr specializationInfo; internal __IntPtr instantiatedFrom; internal global::CppSharp.Parser.AST.QualifiedType.__Internal qualifiedType; @@ -8717,11 +8873,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Function)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -8741,7 +8897,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Function(void* native, bool skipVTables = false) @@ -8754,7 +8910,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Function.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -8763,7 +8919,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Function.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -9096,19 +9252,19 @@ namespace CppSharp internal byte isDeprecated; internal __IntPtr completeDeclaration; internal uint definitionOrder; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ PreprocessedEntities; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Redeclarations; + internal global::Std.Vector.__Internal PreprocessedEntities; + internal global::Std.Vector.__Internal Redeclarations; internal __IntPtr originalPtr; internal __IntPtr comment; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Namespace___N_std_S_allocator__S0_ Namespaces; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Enumeration___N_std_S_allocator__S0_ Enums; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Function___N_std_S_allocator__S0_ Functions; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Class___N_std_S_allocator__S0_ Classes; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Template___N_std_S_allocator__S0_ Templates; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TypedefDecl___N_std_S_allocator__S0_ Typedefs; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TypeAlias___N_std_S_allocator__S0_ TypeAliases; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Variable___N_std_S_allocator__S0_ Variables; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Friend___N_std_S_allocator__S0_ Friends; + internal global::Std.Vector.__Internal Namespaces; + internal global::Std.Vector.__Internal Enums; + internal global::Std.Vector.__Internal Functions; + internal global::Std.Vector.__Internal Classes; + internal global::Std.Vector.__Internal Templates; + internal global::Std.Vector.__Internal Typedefs; + internal global::Std.Vector.__Internal TypeAliases; + internal global::Std.Vector.__Internal Variables; + internal global::Std.Vector.__Internal Friends; internal global::Std.Map.__Internalc__N_std_S_map____N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_less__S0____N_std_S_allocator____N_std_S_pair__1S0__S3_ anonymous; internal byte isAnonymous; internal global::CppSharp.Parser.AST.QualifiedType.__Internal returnType; @@ -9127,7 +9283,7 @@ namespace CppSharp internal global::Std.BasicString.__Internalc__N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C body; internal __IntPtr bodyStmt; internal global::CppSharp.Parser.AST.CallingConvention callingConvention; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Parameter___N_std_S_allocator__S0_ Parameters; + internal global::Std.Vector.__Internal Parameters; internal __IntPtr specializationInfo; internal __IntPtr instantiatedFrom; internal global::CppSharp.Parser.AST.QualifiedType.__Internal qualifiedType; @@ -9141,7 +9297,7 @@ namespace CppSharp internal byte isMoveConstructor; internal global::CppSharp.Parser.AST.QualifiedType.__Internal conversionType; internal global::CppSharp.Parser.AST.RefQualifierKind refQualifier; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Method___N_std_S_allocator__S0_ OverriddenMethods; + internal global::Std.Vector.__Internal OverriddenMethods; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST6MethodC2Ev", CallingConvention = __CallingConvention.Cdecl)] internal static extern void ctor(__IntPtr __instance); @@ -9174,11 +9330,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Method)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -9198,7 +9354,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Method(void* native, bool skipVTables = false) @@ -9211,7 +9367,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Method.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -9220,7 +9376,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Method.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -9428,25 +9584,25 @@ namespace CppSharp internal byte isDeprecated; internal __IntPtr completeDeclaration; internal uint definitionOrder; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ PreprocessedEntities; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Redeclarations; + internal global::Std.Vector.__Internal PreprocessedEntities; + internal global::Std.Vector.__Internal Redeclarations; internal __IntPtr originalPtr; internal __IntPtr comment; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Namespace___N_std_S_allocator__S0_ Namespaces; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Enumeration___N_std_S_allocator__S0_ Enums; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Function___N_std_S_allocator__S0_ Functions; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Class___N_std_S_allocator__S0_ Classes; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Template___N_std_S_allocator__S0_ Templates; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TypedefDecl___N_std_S_allocator__S0_ Typedefs; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TypeAlias___N_std_S_allocator__S0_ TypeAliases; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Variable___N_std_S_allocator__S0_ Variables; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Friend___N_std_S_allocator__S0_ Friends; + internal global::Std.Vector.__Internal Namespaces; + internal global::Std.Vector.__Internal Enums; + internal global::Std.Vector.__Internal Functions; + internal global::Std.Vector.__Internal Classes; + internal global::Std.Vector.__Internal Templates; + internal global::Std.Vector.__Internal Typedefs; + internal global::Std.Vector.__Internal TypeAliases; + internal global::Std.Vector.__Internal Variables; + internal global::Std.Vector.__Internal Friends; internal global::Std.Map.__Internalc__N_std_S_map____N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_less__S0____N_std_S_allocator____N_std_S_pair__1S0__S3_ anonymous; internal byte isAnonymous; internal global::CppSharp.Parser.AST.Enumeration.EnumModifiers modifiers; internal __IntPtr type; internal __IntPtr builtinType; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Enumeration_S_Item___N_std_S_allocator__S0_ Items; + internal global::Std.Vector.__Internal Items; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST11EnumerationC2Ev", CallingConvention = __CallingConvention.Cdecl)] internal static extern void ctor(__IntPtr __instance); @@ -9504,8 +9660,8 @@ namespace CppSharp internal byte isDeprecated; internal __IntPtr completeDeclaration; internal uint definitionOrder; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ PreprocessedEntities; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Redeclarations; + internal global::Std.Vector.__Internal PreprocessedEntities; + internal global::Std.Vector.__Internal Redeclarations; internal __IntPtr originalPtr; internal __IntPtr comment; internal global::Std.BasicString.__Internalc__N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C expression; @@ -9530,11 +9686,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Item)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -9554,7 +9710,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Item(void* native, bool skipVTables = false) @@ -9567,7 +9723,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Enumeration.Item.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -9576,7 +9732,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Enumeration.Item.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -9635,11 +9791,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Enumeration)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -9659,7 +9815,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Enumeration(void* native, bool skipVTables = false) @@ -9672,7 +9828,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Enumeration.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -9681,7 +9837,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Enumeration.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -9809,8 +9965,8 @@ namespace CppSharp internal byte isDeprecated; internal __IntPtr completeDeclaration; internal uint definitionOrder; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ PreprocessedEntities; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Redeclarations; + internal global::Std.Vector.__Internal PreprocessedEntities; + internal global::Std.Vector.__Internal Redeclarations; internal __IntPtr originalPtr; internal __IntPtr comment; internal byte isConstExpr; @@ -9837,11 +9993,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Variable)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -9861,7 +10017,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Variable(void* native, bool skipVTables = false) @@ -9874,7 +10030,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Variable.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -9883,7 +10039,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Variable.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -9981,7 +10137,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.BaseClassSpecifier managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.BaseClassSpecifier managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -9994,11 +10162,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (BaseClassSpecifier)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -10018,7 +10186,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected BaseClassSpecifier(void* native, bool skipVTables = false) @@ -10032,7 +10200,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BaseClassSpecifier.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -10040,7 +10208,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BaseClassSpecifier.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.BaseClassSpecifier.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.BaseClassSpecifier.__Internal*) _0.__Instance); } @@ -10139,8 +10307,8 @@ namespace CppSharp internal byte isDeprecated; internal __IntPtr completeDeclaration; internal uint definitionOrder; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ PreprocessedEntities; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Redeclarations; + internal global::Std.Vector.__Internal PreprocessedEntities; + internal global::Std.Vector.__Internal Redeclarations; internal __IntPtr originalPtr; internal __IntPtr comment; internal global::CppSharp.Parser.AST.QualifiedType.__Internal qualifiedType; @@ -10167,11 +10335,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Field)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -10191,7 +10359,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Field(void* native, bool skipVTables = false) @@ -10204,7 +10372,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Field.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -10213,7 +10381,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Field.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -10314,8 +10482,8 @@ namespace CppSharp internal byte isDeprecated; internal __IntPtr completeDeclaration; internal uint definitionOrder; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ PreprocessedEntities; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Redeclarations; + internal global::Std.Vector.__Internal PreprocessedEntities; + internal global::Std.Vector.__Internal Redeclarations; internal __IntPtr originalPtr; internal __IntPtr comment; @@ -10338,11 +10506,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (AccessSpecifierDecl)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -10362,7 +10530,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected AccessSpecifierDecl(void* native, bool skipVTables = false) @@ -10375,7 +10543,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AccessSpecifierDecl.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -10384,7 +10552,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AccessSpecifierDecl.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -10425,7 +10593,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.VTableComponent managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.VTableComponent managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -10438,11 +10618,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (VTableComponent)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -10462,7 +10642,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected VTableComponent(void* native, bool skipVTables = false) @@ -10476,7 +10656,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VTableComponent.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -10484,7 +10664,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VTableComponent.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.VTableComponent.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.VTableComponent.__Internal*) _0.__Instance); } @@ -10552,7 +10732,7 @@ namespace CppSharp [StructLayout(LayoutKind.Sequential, Size = 24)] public partial struct __Internal { - internal global::Std.Vector.__Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_VTableComponent___N_std_S_allocator__S0_ Components; + internal global::Std.Vector.__Internal Components; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST12VTableLayoutC2Ev", CallingConvention = __CallingConvention.Cdecl)] internal static extern void ctor(__IntPtr __instance); @@ -10578,7 +10758,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.VTableLayout managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.VTableLayout managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -10591,11 +10783,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (VTableLayout)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -10615,7 +10807,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected VTableLayout(void* native, bool skipVTables = false) @@ -10629,7 +10821,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VTableLayout.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -10637,7 +10829,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VTableLayout.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -10715,7 +10907,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.VFTableInfo managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.VFTableInfo managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -10728,11 +10932,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (VFTableInfo)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -10752,7 +10956,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected VFTableInfo(void* native, bool skipVTables = false) @@ -10766,7 +10970,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VFTableInfo.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -10774,7 +10978,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VFTableInfo.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -10878,7 +11082,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.LayoutField managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.LayoutField managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -10891,11 +11107,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (LayoutField)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -10915,7 +11131,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected LayoutField(void* native, bool skipVTables = false) @@ -10929,7 +11145,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.LayoutField.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -10937,7 +11153,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.LayoutField.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(other, null)) throw new global::System.ArgumentNullException("other", "Cannot be null because it is a C++ reference (&)."); var __arg0 = other.__Instance; @@ -11040,7 +11256,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.LayoutBase managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.LayoutBase managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -11053,11 +11281,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (LayoutBase)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -11077,7 +11305,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected LayoutBase(void* native, bool skipVTables = false) @@ -11091,7 +11319,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.LayoutBase.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -11099,7 +11327,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.LayoutBase.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(other, null)) throw new global::System.ArgumentNullException("other", "Cannot be null because it is a C++ reference (&)."); var __arg0 = other.__Instance; @@ -11161,15 +11389,15 @@ namespace CppSharp { internal global::CppSharp.Parser.AST.CppAbi ABI; internal global::CppSharp.Parser.AST.RecordArgABI argABI; - internal global::Std.Vector.__Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_VFTableInfo___N_std_S_allocator__S0_ VFTables; + internal global::Std.Vector.__Internal VFTables; internal global::CppSharp.Parser.AST.VTableLayout.__Internal layout; internal byte hasOwnVFPtr; internal long VBPtrOffset; internal int alignment; internal int size; internal int dataSize; - internal global::Std.Vector.__Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_LayoutField___N_std_S_allocator__S0_ Fields; - internal global::Std.Vector.__Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_LayoutBase___N_std_S_allocator__S0_ Bases; + internal global::Std.Vector.__Internal Fields; + internal global::Std.Vector.__Internal Bases; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST11ClassLayoutC2Ev", CallingConvention = __CallingConvention.Cdecl)] internal static extern void ctor(__IntPtr __instance); @@ -11219,7 +11447,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.ClassLayout managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.ClassLayout managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -11232,11 +11472,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ClassLayout)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -11256,7 +11496,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ClassLayout(void* native, bool skipVTables = false) @@ -11270,7 +11510,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ClassLayout.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -11278,7 +11518,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ClassLayout.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -11528,25 +11768,25 @@ namespace CppSharp internal byte isDeprecated; internal __IntPtr completeDeclaration; internal uint definitionOrder; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ PreprocessedEntities; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Redeclarations; + internal global::Std.Vector.__Internal PreprocessedEntities; + internal global::Std.Vector.__Internal Redeclarations; internal __IntPtr originalPtr; internal __IntPtr comment; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Namespace___N_std_S_allocator__S0_ Namespaces; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Enumeration___N_std_S_allocator__S0_ Enums; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Function___N_std_S_allocator__S0_ Functions; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Class___N_std_S_allocator__S0_ Classes; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Template___N_std_S_allocator__S0_ Templates; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TypedefDecl___N_std_S_allocator__S0_ Typedefs; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TypeAlias___N_std_S_allocator__S0_ TypeAliases; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Variable___N_std_S_allocator__S0_ Variables; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Friend___N_std_S_allocator__S0_ Friends; + internal global::Std.Vector.__Internal Namespaces; + internal global::Std.Vector.__Internal Enums; + internal global::Std.Vector.__Internal Functions; + internal global::Std.Vector.__Internal Classes; + internal global::Std.Vector.__Internal Templates; + internal global::Std.Vector.__Internal Typedefs; + internal global::Std.Vector.__Internal TypeAliases; + internal global::Std.Vector.__Internal Variables; + internal global::Std.Vector.__Internal Friends; internal global::Std.Map.__Internalc__N_std_S_map____N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_less__S0____N_std_S_allocator____N_std_S_pair__1S0__S3_ anonymous; internal byte isAnonymous; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_BaseClassSpecifier___N_std_S_allocator__S0_ Bases; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Field___N_std_S_allocator__S0_ Fields; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Method___N_std_S_allocator__S0_ Methods; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_AccessSpecifierDecl___N_std_S_allocator__S0_ Specifiers; + internal global::Std.Vector.__Internal Bases; + internal global::Std.Vector.__Internal Fields; + internal global::Std.Vector.__Internal Methods; + internal global::Std.Vector.__Internal Specifiers; internal byte isPOD; internal byte isAbstract; internal byte isUnion; @@ -11627,11 +11867,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Class)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -11651,7 +11891,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Class(void* native, bool skipVTables = false) @@ -11664,7 +11904,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Class.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -11673,7 +11913,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Class.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -11996,12 +12236,12 @@ namespace CppSharp internal byte isDeprecated; internal __IntPtr completeDeclaration; internal uint definitionOrder; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ PreprocessedEntities; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Redeclarations; + internal global::Std.Vector.__Internal PreprocessedEntities; + internal global::Std.Vector.__Internal Redeclarations; internal __IntPtr originalPtr; internal __IntPtr comment; internal __IntPtr TemplatedDecl; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Parameters; + internal global::Std.Vector.__Internal Parameters; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST8TemplateC2ENS1_15DeclarationKindE", CallingConvention = __CallingConvention.Cdecl)] internal static extern void ctor(__IntPtr __instance, global::CppSharp.Parser.AST.DeclarationKind kind); @@ -12037,11 +12277,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Template)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -12061,7 +12301,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Template(void* native, bool skipVTables = false) @@ -12074,7 +12314,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Template.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, kind); } @@ -12083,7 +12323,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Template.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -12092,7 +12332,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Template.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -12187,12 +12427,12 @@ namespace CppSharp internal byte isDeprecated; internal __IntPtr completeDeclaration; internal uint definitionOrder; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ PreprocessedEntities; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Redeclarations; + internal global::Std.Vector.__Internal PreprocessedEntities; + internal global::Std.Vector.__Internal Redeclarations; internal __IntPtr originalPtr; internal __IntPtr comment; internal __IntPtr TemplatedDecl; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Parameters; + internal global::Std.Vector.__Internal Parameters; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST17TypeAliasTemplateC2Ev", CallingConvention = __CallingConvention.Cdecl)] internal static extern void ctor(__IntPtr __instance); @@ -12213,11 +12453,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TypeAliasTemplate)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -12237,7 +12477,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TypeAliasTemplate(void* native, bool skipVTables = false) @@ -12250,7 +12490,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypeAliasTemplate.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -12259,7 +12499,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypeAliasTemplate.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -12305,8 +12545,8 @@ namespace CppSharp internal byte isDeprecated; internal __IntPtr completeDeclaration; internal uint definitionOrder; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ PreprocessedEntities; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Redeclarations; + internal global::Std.Vector.__Internal PreprocessedEntities; + internal global::Std.Vector.__Internal Redeclarations; internal __IntPtr originalPtr; internal __IntPtr comment; internal uint depth; @@ -12332,11 +12572,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TemplateParameter)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -12356,7 +12596,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TemplateParameter(void* native, bool skipVTables = false) @@ -12369,7 +12609,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateParameter.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, kind); } @@ -12378,7 +12618,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateParameter.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -12468,12 +12708,12 @@ namespace CppSharp internal byte isDeprecated; internal __IntPtr completeDeclaration; internal uint definitionOrder; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ PreprocessedEntities; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Redeclarations; + internal global::Std.Vector.__Internal PreprocessedEntities; + internal global::Std.Vector.__Internal Redeclarations; internal __IntPtr originalPtr; internal __IntPtr comment; internal __IntPtr TemplatedDecl; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Parameters; + internal global::Std.Vector.__Internal Parameters; internal byte isParameterPack; internal byte isPackExpansion; internal byte isExpandedParameterPack; @@ -12497,11 +12737,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TemplateTemplateParameter)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -12521,7 +12761,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TemplateTemplateParameter(void* native, bool skipVTables = false) @@ -12534,7 +12774,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateTemplateParameter.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -12543,7 +12783,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateTemplateParameter.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -12628,8 +12868,8 @@ namespace CppSharp internal byte isDeprecated; internal __IntPtr completeDeclaration; internal uint definitionOrder; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ PreprocessedEntities; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Redeclarations; + internal global::Std.Vector.__Internal PreprocessedEntities; + internal global::Std.Vector.__Internal Redeclarations; internal __IntPtr originalPtr; internal __IntPtr comment; internal uint depth; @@ -12656,11 +12896,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TypeTemplateParameter)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -12680,7 +12920,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TypeTemplateParameter(void* native, bool skipVTables = false) @@ -12693,7 +12933,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypeTemplateParameter.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -12702,7 +12942,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypeTemplateParameter.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -12763,8 +13003,8 @@ namespace CppSharp internal byte isDeprecated; internal __IntPtr completeDeclaration; internal uint definitionOrder; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ PreprocessedEntities; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Redeclarations; + internal global::Std.Vector.__Internal PreprocessedEntities; + internal global::Std.Vector.__Internal Redeclarations; internal __IntPtr originalPtr; internal __IntPtr comment; internal uint depth; @@ -12795,11 +13035,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (NonTypeTemplateParameter)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -12819,7 +13059,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected NonTypeTemplateParameter(void* native, bool skipVTables = false) @@ -12832,7 +13072,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.NonTypeTemplateParameter.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -12841,7 +13081,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.NonTypeTemplateParameter.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -12954,13 +13194,13 @@ namespace CppSharp internal byte isDeprecated; internal __IntPtr completeDeclaration; internal uint definitionOrder; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ PreprocessedEntities; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Redeclarations; + internal global::Std.Vector.__Internal PreprocessedEntities; + internal global::Std.Vector.__Internal Redeclarations; internal __IntPtr originalPtr; internal __IntPtr comment; internal __IntPtr TemplatedDecl; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Parameters; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_ClassTemplateSpecialization___N_std_S_allocator__S0_ Specializations; + internal global::Std.Vector.__Internal Parameters; + internal global::Std.Vector.__Internal Specializations; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST13ClassTemplateC2Ev", CallingConvention = __CallingConvention.Cdecl)] internal static extern void ctor(__IntPtr __instance); @@ -12999,11 +13239,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ClassTemplate)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -13023,7 +13263,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ClassTemplate(void* native, bool skipVTables = false) @@ -13036,7 +13276,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ClassTemplate.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -13045,7 +13285,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ClassTemplate.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -13143,25 +13383,25 @@ namespace CppSharp internal byte isDeprecated; internal __IntPtr completeDeclaration; internal uint definitionOrder; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ PreprocessedEntities; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Redeclarations; + internal global::Std.Vector.__Internal PreprocessedEntities; + internal global::Std.Vector.__Internal Redeclarations; internal __IntPtr originalPtr; internal __IntPtr comment; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Namespace___N_std_S_allocator__S0_ Namespaces; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Enumeration___N_std_S_allocator__S0_ Enums; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Function___N_std_S_allocator__S0_ Functions; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Class___N_std_S_allocator__S0_ Classes; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Template___N_std_S_allocator__S0_ Templates; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TypedefDecl___N_std_S_allocator__S0_ Typedefs; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TypeAlias___N_std_S_allocator__S0_ TypeAliases; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Variable___N_std_S_allocator__S0_ Variables; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Friend___N_std_S_allocator__S0_ Friends; + internal global::Std.Vector.__Internal Namespaces; + internal global::Std.Vector.__Internal Enums; + internal global::Std.Vector.__Internal Functions; + internal global::Std.Vector.__Internal Classes; + internal global::Std.Vector.__Internal Templates; + internal global::Std.Vector.__Internal Typedefs; + internal global::Std.Vector.__Internal TypeAliases; + internal global::Std.Vector.__Internal Variables; + internal global::Std.Vector.__Internal Friends; internal global::Std.Map.__Internalc__N_std_S_map____N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_less__S0____N_std_S_allocator____N_std_S_pair__1S0__S3_ anonymous; internal byte isAnonymous; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_BaseClassSpecifier___N_std_S_allocator__S0_ Bases; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Field___N_std_S_allocator__S0_ Fields; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Method___N_std_S_allocator__S0_ Methods; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_AccessSpecifierDecl___N_std_S_allocator__S0_ Specifiers; + internal global::Std.Vector.__Internal Bases; + internal global::Std.Vector.__Internal Fields; + internal global::Std.Vector.__Internal Methods; + internal global::Std.Vector.__Internal Specifiers; internal byte isPOD; internal byte isAbstract; internal byte isUnion; @@ -13175,7 +13415,7 @@ namespace CppSharp internal global::CppSharp.Parser.AST.TagKind tagKind; internal __IntPtr layout; internal __IntPtr templatedDecl; - internal global::Std.Vector.__Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_TemplateArgument___N_std_S_allocator__S0_ Arguments; + internal global::Std.Vector.__Internal Arguments; internal global::CppSharp.Parser.AST.TemplateSpecializationKind specializationKind; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST27ClassTemplateSpecializationC2Ev", CallingConvention = __CallingConvention.Cdecl)] @@ -13209,11 +13449,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ClassTemplateSpecialization)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -13233,7 +13473,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ClassTemplateSpecialization(void* native, bool skipVTables = false) @@ -13246,7 +13486,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ClassTemplateSpecialization.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -13255,7 +13495,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ClassTemplateSpecialization.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -13357,25 +13597,25 @@ namespace CppSharp internal byte isDeprecated; internal __IntPtr completeDeclaration; internal uint definitionOrder; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ PreprocessedEntities; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Redeclarations; + internal global::Std.Vector.__Internal PreprocessedEntities; + internal global::Std.Vector.__Internal Redeclarations; internal __IntPtr originalPtr; internal __IntPtr comment; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Namespace___N_std_S_allocator__S0_ Namespaces; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Enumeration___N_std_S_allocator__S0_ Enums; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Function___N_std_S_allocator__S0_ Functions; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Class___N_std_S_allocator__S0_ Classes; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Template___N_std_S_allocator__S0_ Templates; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TypedefDecl___N_std_S_allocator__S0_ Typedefs; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TypeAlias___N_std_S_allocator__S0_ TypeAliases; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Variable___N_std_S_allocator__S0_ Variables; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Friend___N_std_S_allocator__S0_ Friends; + internal global::Std.Vector.__Internal Namespaces; + internal global::Std.Vector.__Internal Enums; + internal global::Std.Vector.__Internal Functions; + internal global::Std.Vector.__Internal Classes; + internal global::Std.Vector.__Internal Templates; + internal global::Std.Vector.__Internal Typedefs; + internal global::Std.Vector.__Internal TypeAliases; + internal global::Std.Vector.__Internal Variables; + internal global::Std.Vector.__Internal Friends; internal global::Std.Map.__Internalc__N_std_S_map____N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_less__S0____N_std_S_allocator____N_std_S_pair__1S0__S3_ anonymous; internal byte isAnonymous; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_BaseClassSpecifier___N_std_S_allocator__S0_ Bases; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Field___N_std_S_allocator__S0_ Fields; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Method___N_std_S_allocator__S0_ Methods; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_AccessSpecifierDecl___N_std_S_allocator__S0_ Specifiers; + internal global::Std.Vector.__Internal Bases; + internal global::Std.Vector.__Internal Fields; + internal global::Std.Vector.__Internal Methods; + internal global::Std.Vector.__Internal Specifiers; internal byte isPOD; internal byte isAbstract; internal byte isUnion; @@ -13389,7 +13629,7 @@ namespace CppSharp internal global::CppSharp.Parser.AST.TagKind tagKind; internal __IntPtr layout; internal __IntPtr templatedDecl; - internal global::Std.Vector.__Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_TemplateArgument___N_std_S_allocator__S0_ Arguments; + internal global::Std.Vector.__Internal Arguments; internal global::CppSharp.Parser.AST.TemplateSpecializationKind specializationKind; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST34ClassTemplatePartialSpecializationC2Ev", CallingConvention = __CallingConvention.Cdecl)] @@ -13411,11 +13651,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ClassTemplatePartialSpecialization)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -13435,7 +13675,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ClassTemplatePartialSpecialization(void* native, bool skipVTables = false) @@ -13448,7 +13688,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ClassTemplatePartialSpecialization.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -13457,7 +13697,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ClassTemplatePartialSpecialization.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -13503,13 +13743,13 @@ namespace CppSharp internal byte isDeprecated; internal __IntPtr completeDeclaration; internal uint definitionOrder; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ PreprocessedEntities; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Redeclarations; + internal global::Std.Vector.__Internal PreprocessedEntities; + internal global::Std.Vector.__Internal Redeclarations; internal __IntPtr originalPtr; internal __IntPtr comment; internal __IntPtr TemplatedDecl; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Parameters; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_FunctionTemplateSpecialization___N_std_S_allocator__S0_ Specializations; + internal global::Std.Vector.__Internal Parameters; + internal global::Std.Vector.__Internal Specializations; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST16FunctionTemplateC2Ev", CallingConvention = __CallingConvention.Cdecl)] internal static extern void ctor(__IntPtr __instance); @@ -13545,11 +13785,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (FunctionTemplate)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -13569,7 +13809,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected FunctionTemplate(void* native, bool skipVTables = false) @@ -13582,7 +13822,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FunctionTemplate.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -13591,7 +13831,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FunctionTemplate.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -13661,7 +13901,7 @@ namespace CppSharp public partial struct __Internal { internal __IntPtr _template; - internal global::Std.Vector.__Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_TemplateArgument___N_std_S_allocator__S0_ Arguments; + internal global::Std.Vector.__Internal Arguments; internal __IntPtr specializedFunction; internal global::CppSharp.Parser.AST.TemplateSpecializationKind specializationKind; @@ -13689,7 +13929,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.FunctionTemplateSpecialization managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.FunctionTemplateSpecialization managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -13702,11 +13954,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (FunctionTemplateSpecialization)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -13726,7 +13978,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected FunctionTemplateSpecialization(void* native, bool skipVTables = false) @@ -13740,7 +13992,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FunctionTemplateSpecialization.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -13748,7 +14000,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FunctionTemplateSpecialization.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -13869,13 +14121,13 @@ namespace CppSharp internal byte isDeprecated; internal __IntPtr completeDeclaration; internal uint definitionOrder; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ PreprocessedEntities; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Redeclarations; + internal global::Std.Vector.__Internal PreprocessedEntities; + internal global::Std.Vector.__Internal Redeclarations; internal __IntPtr originalPtr; internal __IntPtr comment; internal __IntPtr TemplatedDecl; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Parameters; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_VarTemplateSpecialization___N_std_S_allocator__S0_ Specializations; + internal global::Std.Vector.__Internal Parameters; + internal global::Std.Vector.__Internal Specializations; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST11VarTemplateC2Ev", CallingConvention = __CallingConvention.Cdecl)] internal static extern void ctor(__IntPtr __instance); @@ -13914,11 +14166,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (VarTemplate)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -13938,7 +14190,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected VarTemplate(void* native, bool skipVTables = false) @@ -13951,7 +14203,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VarTemplate.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -13960,7 +14212,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VarTemplate.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -14058,8 +14310,8 @@ namespace CppSharp internal byte isDeprecated; internal __IntPtr completeDeclaration; internal uint definitionOrder; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ PreprocessedEntities; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Redeclarations; + internal global::Std.Vector.__Internal PreprocessedEntities; + internal global::Std.Vector.__Internal Redeclarations; internal __IntPtr originalPtr; internal __IntPtr comment; internal byte isConstExpr; @@ -14067,7 +14319,7 @@ namespace CppSharp internal global::CppSharp.Parser.AST.QualifiedType.__Internal qualifiedType; internal __IntPtr initializer; internal __IntPtr templatedDecl; - internal global::Std.Vector.__Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_TemplateArgument___N_std_S_allocator__S0_ Arguments; + internal global::Std.Vector.__Internal Arguments; internal global::CppSharp.Parser.AST.TemplateSpecializationKind specializationKind; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST25VarTemplateSpecializationC2Ev", CallingConvention = __CallingConvention.Cdecl)] @@ -14101,11 +14353,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (VarTemplateSpecialization)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -14125,7 +14377,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected VarTemplateSpecialization(void* native, bool skipVTables = false) @@ -14138,7 +14390,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VarTemplateSpecialization.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -14147,7 +14399,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VarTemplateSpecialization.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -14249,8 +14501,8 @@ namespace CppSharp internal byte isDeprecated; internal __IntPtr completeDeclaration; internal uint definitionOrder; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ PreprocessedEntities; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Redeclarations; + internal global::Std.Vector.__Internal PreprocessedEntities; + internal global::Std.Vector.__Internal Redeclarations; internal __IntPtr originalPtr; internal __IntPtr comment; internal byte isConstExpr; @@ -14258,7 +14510,7 @@ namespace CppSharp internal global::CppSharp.Parser.AST.QualifiedType.__Internal qualifiedType; internal __IntPtr initializer; internal __IntPtr templatedDecl; - internal global::Std.Vector.__Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_TemplateArgument___N_std_S_allocator__S0_ Arguments; + internal global::Std.Vector.__Internal Arguments; internal global::CppSharp.Parser.AST.TemplateSpecializationKind specializationKind; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST32VarTemplatePartialSpecializationC2Ev", CallingConvention = __CallingConvention.Cdecl)] @@ -14280,11 +14532,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (VarTemplatePartialSpecialization)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -14304,7 +14556,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected VarTemplatePartialSpecialization(void* native, bool skipVTables = false) @@ -14317,7 +14569,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VarTemplatePartialSpecialization.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -14326,7 +14578,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VarTemplatePartialSpecialization.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -14372,8 +14624,8 @@ namespace CppSharp internal byte isDeprecated; internal __IntPtr completeDeclaration; internal uint definitionOrder; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ PreprocessedEntities; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Redeclarations; + internal global::Std.Vector.__Internal PreprocessedEntities; + internal global::Std.Vector.__Internal Redeclarations; internal __IntPtr originalPtr; internal __IntPtr comment; @@ -14396,11 +14648,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (UnresolvedUsingTypename)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -14420,7 +14672,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected UnresolvedUsingTypename(void* native, bool skipVTables = false) @@ -14433,7 +14685,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnresolvedUsingTypename.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -14442,7 +14694,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnresolvedUsingTypename.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -14488,19 +14740,19 @@ namespace CppSharp internal byte isDeprecated; internal __IntPtr completeDeclaration; internal uint definitionOrder; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ PreprocessedEntities; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Redeclarations; + internal global::Std.Vector.__Internal PreprocessedEntities; + internal global::Std.Vector.__Internal Redeclarations; internal __IntPtr originalPtr; internal __IntPtr comment; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Namespace___N_std_S_allocator__S0_ Namespaces; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Enumeration___N_std_S_allocator__S0_ Enums; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Function___N_std_S_allocator__S0_ Functions; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Class___N_std_S_allocator__S0_ Classes; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Template___N_std_S_allocator__S0_ Templates; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TypedefDecl___N_std_S_allocator__S0_ Typedefs; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TypeAlias___N_std_S_allocator__S0_ TypeAliases; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Variable___N_std_S_allocator__S0_ Variables; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Friend___N_std_S_allocator__S0_ Friends; + internal global::Std.Vector.__Internal Namespaces; + internal global::Std.Vector.__Internal Enums; + internal global::Std.Vector.__Internal Functions; + internal global::Std.Vector.__Internal Classes; + internal global::Std.Vector.__Internal Templates; + internal global::Std.Vector.__Internal Typedefs; + internal global::Std.Vector.__Internal TypeAliases; + internal global::Std.Vector.__Internal Variables; + internal global::Std.Vector.__Internal Friends; internal global::Std.Map.__Internalc__N_std_S_map____N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_less__S0____N_std_S_allocator____N_std_S_pair__1S0__S3_ anonymous; internal byte isAnonymous; internal byte isInline; @@ -14524,11 +14776,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Namespace)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -14548,7 +14800,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Namespace(void* native, bool skipVTables = false) @@ -14561,7 +14813,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Namespace.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -14570,7 +14822,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Namespace.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -14624,7 +14876,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.PreprocessedEntity managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.PreprocessedEntity managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -14637,11 +14901,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (PreprocessedEntity)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -14661,7 +14925,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected PreprocessedEntity(void* native, bool skipVTables = false) @@ -14675,7 +14939,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PreprocessedEntity.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -14683,7 +14947,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PreprocessedEntity.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.PreprocessedEntity.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.PreprocessedEntity.__Internal*) _0.__Instance); } @@ -14777,11 +15041,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (MacroDefinition)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -14801,7 +15065,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected MacroDefinition(void* native, bool skipVTables = false) @@ -14814,7 +15078,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MacroDefinition.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -14823,7 +15087,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MacroDefinition.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -14931,11 +15195,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (MacroExpansion)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -14955,7 +15219,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected MacroExpansion(void* native, bool skipVTables = false) @@ -14968,7 +15232,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MacroExpansion.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -14977,7 +15241,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MacroExpansion.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -15065,25 +15329,25 @@ namespace CppSharp internal byte isDeprecated; internal __IntPtr completeDeclaration; internal uint definitionOrder; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ PreprocessedEntities; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Redeclarations; + internal global::Std.Vector.__Internal PreprocessedEntities; + internal global::Std.Vector.__Internal Redeclarations; internal __IntPtr originalPtr; internal __IntPtr comment; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Namespace___N_std_S_allocator__S0_ Namespaces; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Enumeration___N_std_S_allocator__S0_ Enums; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Function___N_std_S_allocator__S0_ Functions; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Class___N_std_S_allocator__S0_ Classes; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Template___N_std_S_allocator__S0_ Templates; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TypedefDecl___N_std_S_allocator__S0_ Typedefs; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TypeAlias___N_std_S_allocator__S0_ TypeAliases; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Variable___N_std_S_allocator__S0_ Variables; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Friend___N_std_S_allocator__S0_ Friends; + internal global::Std.Vector.__Internal Namespaces; + internal global::Std.Vector.__Internal Enums; + internal global::Std.Vector.__Internal Functions; + internal global::Std.Vector.__Internal Classes; + internal global::Std.Vector.__Internal Templates; + internal global::Std.Vector.__Internal Typedefs; + internal global::Std.Vector.__Internal TypeAliases; + internal global::Std.Vector.__Internal Variables; + internal global::Std.Vector.__Internal Friends; internal global::Std.Map.__Internalc__N_std_S_map____N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_less__S0____N_std_S_allocator____N_std_S_pair__1S0__S3_ anonymous; internal byte isAnonymous; internal byte isInline; internal global::Std.BasicString.__Internalc__N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C fileName; internal byte isSystemHeader; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_MacroDefinition___N_std_S_allocator__S0_ Macros; + internal global::Std.Vector.__Internal Macros; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST15TranslationUnitC2Ev", CallingConvention = __CallingConvention.Cdecl)] internal static extern void ctor(__IntPtr __instance); @@ -15116,11 +15380,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TranslationUnit)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -15140,7 +15404,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TranslationUnit(void* native, bool skipVTables = false) @@ -15153,7 +15417,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TranslationUnit.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -15162,7 +15426,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TranslationUnit.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -15247,7 +15511,7 @@ namespace CppSharp [StructLayout(LayoutKind.Sequential, Size = 24)] public partial struct __Internal { - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TranslationUnit___N_std_S_allocator__S0_ TranslationUnits; + internal global::Std.Vector.__Internal TranslationUnits; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST10ASTContextC2Ev", CallingConvention = __CallingConvention.Cdecl)] internal static extern void ctor(__IntPtr __instance); @@ -15276,7 +15540,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.ASTContext managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.ASTContext managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -15289,11 +15565,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ASTContext)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -15313,7 +15589,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ASTContext(void* native, bool skipVTables = false) @@ -15327,7 +15603,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ASTContext.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -15335,7 +15611,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ASTContext.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -15565,7 +15841,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.Stmt managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.Stmt managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -15578,11 +15866,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Stmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -15602,7 +15890,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Stmt(void* native, bool skipVTables = false) @@ -15616,7 +15904,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Stmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -15624,7 +15912,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Stmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -15632,7 +15920,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Stmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.Stmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.Stmt.__Internal*) _0.__Instance); } @@ -15723,7 +16011,7 @@ namespace CppSharp internal global::CppSharp.Parser.SourceRange.__Internal sourceRange; internal global::CppSharp.Parser.SourceLocation.__Internal beginLoc; internal global::CppSharp.Parser.SourceLocation.__Internal endLoc; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ decls; + internal global::Std.Vector.__Internal decls; internal byte isSingleDecl; internal __IntPtr singleDecl; @@ -15758,11 +16046,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DeclStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -15782,7 +16070,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DeclStmt(void* native, bool skipVTables = false) @@ -15795,7 +16083,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DeclStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -15804,7 +16092,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DeclStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -15912,11 +16200,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (NullStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -15936,7 +16224,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected NullStmt(void* native, bool skipVTables = false) @@ -15949,7 +16237,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.NullStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -15958,7 +16246,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.NullStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.NullStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.NullStmt.__Internal*) _0.__Instance); } @@ -15998,7 +16286,7 @@ namespace CppSharp internal global::CppSharp.Parser.SourceRange.__Internal sourceRange; internal global::CppSharp.Parser.SourceLocation.__Internal beginLoc; internal global::CppSharp.Parser.SourceLocation.__Internal endLoc; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Stmt___N_std_S_allocator__S0_ body; + internal global::Std.Vector.__Internal body; internal byte body_empty; internal uint size; internal __IntPtr body_front; @@ -16037,11 +16325,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CompoundStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -16061,7 +16349,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CompoundStmt(void* native, bool skipVTables = false) @@ -16074,7 +16362,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CompoundStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -16083,7 +16371,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CompoundStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -16248,11 +16536,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (SwitchCase)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -16272,7 +16560,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected SwitchCase(void* native, bool skipVTables = false) @@ -16285,7 +16573,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SwitchCase.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -16294,7 +16582,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SwitchCase.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -16303,7 +16591,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SwitchCase.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.SwitchCase.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.SwitchCase.__Internal*) _0.__Instance); } @@ -16387,11 +16675,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CaseStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -16411,7 +16699,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CaseStmt(void* native, bool skipVTables = false) @@ -16424,7 +16712,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CaseStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -16433,7 +16721,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CaseStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CaseStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CaseStmt.__Internal*) _0.__Instance); } @@ -16535,11 +16823,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DefaultStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -16559,7 +16847,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DefaultStmt(void* native, bool skipVTables = false) @@ -16572,7 +16860,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DefaultStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -16581,7 +16869,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DefaultStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.DefaultStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.DefaultStmt.__Internal*) _0.__Instance); } @@ -16629,11 +16917,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (LabelStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -16653,7 +16941,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected LabelStmt(void* native, bool skipVTables = false) @@ -16666,7 +16954,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.LabelStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -16675,7 +16963,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.LabelStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.LabelStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.LabelStmt.__Internal*) _0.__Instance); if (_0.__name_OwnsNativeMemory) this.Name = _0.Name; @@ -16762,11 +17050,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (AttributedStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -16786,7 +17074,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected AttributedStmt(void* native, bool skipVTables = false) @@ -16799,7 +17087,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AttributedStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -16808,7 +17096,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AttributedStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.AttributedStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.AttributedStmt.__Internal*) _0.__Instance); } @@ -16878,11 +17166,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (IfStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -16902,7 +17190,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected IfStmt(void* native, bool skipVTables = false) @@ -16915,7 +17203,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.IfStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -16924,7 +17212,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.IfStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.IfStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.IfStmt.__Internal*) _0.__Instance); } @@ -17124,11 +17412,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (SwitchStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -17148,7 +17436,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected SwitchStmt(void* native, bool skipVTables = false) @@ -17161,7 +17449,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SwitchStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -17170,7 +17458,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SwitchStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.SwitchStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.SwitchStmt.__Internal*) _0.__Instance); } @@ -17314,11 +17602,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (WhileStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -17338,7 +17626,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected WhileStmt(void* native, bool skipVTables = false) @@ -17351,7 +17639,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.WhileStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -17360,7 +17648,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.WhileStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.WhileStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.WhileStmt.__Internal*) _0.__Instance); } @@ -17464,11 +17752,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DoStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -17488,7 +17776,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DoStmt(void* native, bool skipVTables = false) @@ -17501,7 +17789,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DoStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -17510,7 +17798,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DoStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.DoStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.DoStmt.__Internal*) _0.__Instance); } @@ -17616,11 +17904,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ForStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -17640,7 +17928,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ForStmt(void* native, bool skipVTables = false) @@ -17653,7 +17941,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ForStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -17662,7 +17950,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ForStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ForStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ForStmt.__Internal*) _0.__Instance); } @@ -17804,11 +18092,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (GotoStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -17828,7 +18116,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected GotoStmt(void* native, bool skipVTables = false) @@ -17841,7 +18129,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.GotoStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -17850,7 +18138,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.GotoStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.GotoStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.GotoStmt.__Internal*) _0.__Instance); } @@ -17910,11 +18198,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (IndirectGotoStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -17934,7 +18222,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected IndirectGotoStmt(void* native, bool skipVTables = false) @@ -17947,7 +18235,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.IndirectGotoStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -17956,7 +18244,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.IndirectGotoStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.IndirectGotoStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.IndirectGotoStmt.__Internal*) _0.__Instance); } @@ -18028,11 +18316,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ContinueStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -18052,7 +18340,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ContinueStmt(void* native, bool skipVTables = false) @@ -18065,7 +18353,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ContinueStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -18074,7 +18362,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ContinueStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ContinueStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ContinueStmt.__Internal*) _0.__Instance); } @@ -18119,11 +18407,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (BreakStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -18143,7 +18431,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected BreakStmt(void* native, bool skipVTables = false) @@ -18156,7 +18444,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BreakStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -18165,7 +18453,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BreakStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.BreakStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.BreakStmt.__Internal*) _0.__Instance); } @@ -18211,11 +18499,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ReturnStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -18235,7 +18523,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ReturnStmt(void* native, bool skipVTables = false) @@ -18248,7 +18536,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ReturnStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -18257,7 +18545,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ReturnStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ReturnStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ReturnStmt.__Internal*) _0.__Instance); } @@ -18298,8 +18586,8 @@ namespace CppSharp internal global::CppSharp.Parser.SourceRange.__Internal sourceRange; internal global::CppSharp.Parser.SourceLocation.__Internal beginLoc; internal global::CppSharp.Parser.SourceLocation.__Internal endLoc; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Expr___N_std_S_allocator__S0_ inputs; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Expr___N_std_S_allocator__S0_ outputs; + internal global::Std.Vector.__Internal inputs; + internal global::Std.Vector.__Internal outputs; internal global::CppSharp.Parser.SourceLocation.__Internal asmLoc; internal byte simple; internal byte _volatile; @@ -18354,11 +18642,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (AsmStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -18378,7 +18666,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected AsmStmt(void* native, bool skipVTables = false) @@ -18391,7 +18679,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AsmStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -18400,7 +18688,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AsmStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -18409,7 +18697,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AsmStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -18597,8 +18885,8 @@ namespace CppSharp internal global::CppSharp.Parser.SourceRange.__Internal sourceRange; internal global::CppSharp.Parser.SourceLocation.__Internal beginLoc; internal global::CppSharp.Parser.SourceLocation.__Internal endLoc; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Expr___N_std_S_allocator__S0_ inputs; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Expr___N_std_S_allocator__S0_ outputs; + internal global::Std.Vector.__Internal inputs; + internal global::Std.Vector.__Internal outputs; internal global::CppSharp.Parser.SourceLocation.__Internal asmLoc; internal byte simple; internal byte _volatile; @@ -18647,7 +18935,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.GCCAsmStmt.AsmStringPiece managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.GCCAsmStmt.AsmStringPiece managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -18660,11 +18960,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (AsmStringPiece)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -18684,7 +18984,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected AsmStringPiece(void* native, bool skipVTables = false) @@ -18698,7 +18998,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.GCCAsmStmt.AsmStringPiece.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -18706,7 +19006,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.GCCAsmStmt.AsmStringPiece.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -18809,11 +19109,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (GCCAsmStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -18833,7 +19133,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected GCCAsmStmt(void* native, bool skipVTables = false) @@ -18846,7 +19146,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.GCCAsmStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -18855,7 +19155,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.GCCAsmStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -18900,8 +19200,8 @@ namespace CppSharp internal global::CppSharp.Parser.SourceRange.__Internal sourceRange; internal global::CppSharp.Parser.SourceLocation.__Internal beginLoc; internal global::CppSharp.Parser.SourceLocation.__Internal endLoc; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Expr___N_std_S_allocator__S0_ inputs; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Expr___N_std_S_allocator__S0_ outputs; + internal global::Std.Vector.__Internal inputs; + internal global::Std.Vector.__Internal outputs; internal global::CppSharp.Parser.SourceLocation.__Internal asmLoc; internal byte simple; internal byte _volatile; @@ -18933,11 +19233,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (MSAsmStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -18957,7 +19257,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected MSAsmStmt(void* native, bool skipVTables = false) @@ -18970,7 +19270,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MSAsmStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -18979,7 +19279,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MSAsmStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -19084,11 +19384,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (SEHExceptStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -19108,7 +19408,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected SEHExceptStmt(void* native, bool skipVTables = false) @@ -19121,7 +19421,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SEHExceptStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -19130,7 +19430,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SEHExceptStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.SEHExceptStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.SEHExceptStmt.__Internal*) _0.__Instance); } @@ -19204,11 +19504,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (SEHFinallyStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -19228,7 +19528,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected SEHFinallyStmt(void* native, bool skipVTables = false) @@ -19241,7 +19541,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SEHFinallyStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -19250,7 +19550,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SEHFinallyStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.SEHFinallyStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.SEHFinallyStmt.__Internal*) _0.__Instance); } @@ -19314,11 +19614,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (SEHTryStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -19338,7 +19638,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected SEHTryStmt(void* native, bool skipVTables = false) @@ -19351,7 +19651,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SEHTryStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -19360,7 +19660,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SEHTryStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.SEHTryStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.SEHTryStmt.__Internal*) _0.__Instance); } @@ -19474,11 +19774,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (SEHLeaveStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -19498,7 +19798,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected SEHLeaveStmt(void* native, bool skipVTables = false) @@ -19511,7 +19811,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SEHLeaveStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -19520,7 +19820,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SEHLeaveStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.SEHLeaveStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.SEHLeaveStmt.__Internal*) _0.__Instance); } @@ -19547,7 +19847,7 @@ namespace CppSharp internal global::CppSharp.Parser.SourceRange.__Internal sourceRange; internal global::CppSharp.Parser.SourceLocation.__Internal beginLoc; internal global::CppSharp.Parser.SourceLocation.__Internal endLoc; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Expr___N_std_S_allocator__S0_ capture_inits; + internal global::Std.Vector.__Internal capture_inits; internal __IntPtr capturedStmt; internal uint capture_size; @@ -19602,7 +19902,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.CapturedStmt.Capture managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.CapturedStmt.Capture managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -19615,11 +19927,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Capture)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -19639,7 +19951,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Capture(void* native, bool skipVTables = false) @@ -19653,7 +19965,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CapturedStmt.Capture.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -19661,7 +19973,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CapturedStmt.Capture.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CapturedStmt.Capture.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CapturedStmt.Capture.__Internal*) _0.__Instance); } @@ -19771,11 +20083,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CapturedStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -19795,7 +20107,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CapturedStmt(void* native, bool skipVTables = false) @@ -19808,7 +20120,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CapturedStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -19817,7 +20129,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CapturedStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -19926,11 +20238,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXCatchStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -19950,7 +20262,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXCatchStmt(void* native, bool skipVTables = false) @@ -19963,7 +20275,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXCatchStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -19972,7 +20284,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXCatchStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXCatchStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXCatchStmt.__Internal*) _0.__Instance); } @@ -20048,11 +20360,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXTryStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -20072,7 +20384,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXTryStmt(void* native, bool skipVTables = false) @@ -20085,7 +20397,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXTryStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -20094,7 +20406,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXTryStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXTryStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXTryStmt.__Internal*) _0.__Instance); } @@ -20178,11 +20490,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXForRangeStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -20202,7 +20514,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXForRangeStmt(void* native, bool skipVTables = false) @@ -20215,7 +20527,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXForRangeStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -20224,7 +20536,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXForRangeStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXForRangeStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXForRangeStmt.__Internal*) _0.__Instance); } @@ -20437,11 +20749,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (MSDependentExistsStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -20461,7 +20773,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected MSDependentExistsStmt(void* native, bool skipVTables = false) @@ -20474,7 +20786,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MSDependentExistsStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -20483,7 +20795,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MSDependentExistsStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.MSDependentExistsStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.MSDependentExistsStmt.__Internal*) _0.__Instance); } @@ -20602,7 +20914,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.CoroutineBodyStmt.CtorArgs managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.CoroutineBodyStmt.CtorArgs managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -20615,11 +20939,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CtorArgs)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -20639,7 +20963,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CtorArgs(void* native, bool skipVTables = false) @@ -20653,7 +20977,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoroutineBodyStmt.CtorArgs.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -20661,7 +20985,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoroutineBodyStmt.CtorArgs.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CoroutineBodyStmt.CtorArgs.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CoroutineBodyStmt.CtorArgs.__Internal*) _0.__Instance); } @@ -20693,11 +21017,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CoroutineBodyStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -20717,7 +21041,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CoroutineBodyStmt(void* native, bool skipVTables = false) @@ -20730,7 +21054,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoroutineBodyStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -20739,7 +21063,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoroutineBodyStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CoroutineBodyStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CoroutineBodyStmt.__Internal*) _0.__Instance); } @@ -20962,11 +21286,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CoreturnStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -20986,7 +21310,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CoreturnStmt(void* native, bool skipVTables = false) @@ -20999,7 +21323,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoreturnStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -21008,7 +21332,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoreturnStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CoreturnStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CoreturnStmt.__Internal*) _0.__Instance); } @@ -21412,7 +21736,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.Expr.Classification managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.Expr.Classification managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -21425,11 +21761,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Classification)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -21449,7 +21785,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Classification(void* native, bool skipVTables = false) @@ -21463,7 +21799,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Expr.Classification.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -21471,7 +21807,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Expr.Classification.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.Expr.Classification.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.Expr.Classification.__Internal*) _0.__Instance); } @@ -21607,11 +21943,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Expr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -21631,7 +21967,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Expr(void* native, bool skipVTables = false) @@ -21644,7 +21980,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Expr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -21653,7 +21989,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Expr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -21662,7 +21998,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Expr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.Expr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.Expr.__Internal*) _0.__Instance); } @@ -21902,11 +22238,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (FullExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -21926,7 +22262,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected FullExpr(void* native, bool skipVTables = false) @@ -21939,7 +22275,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FullExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -21948,7 +22284,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FullExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -21957,7 +22293,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FullExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.FullExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.FullExpr.__Internal*) _0.__Instance); } @@ -22022,11 +22358,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ConstantExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -22046,7 +22382,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ConstantExpr(void* native, bool skipVTables = false) @@ -22059,7 +22395,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ConstantExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -22068,7 +22404,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ConstantExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ConstantExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ConstantExpr.__Internal*) _0.__Instance); } } @@ -22116,11 +22452,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (OpaqueValueExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -22140,7 +22476,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected OpaqueValueExpr(void* native, bool skipVTables = false) @@ -22153,7 +22489,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.OpaqueValueExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -22162,7 +22498,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.OpaqueValueExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.OpaqueValueExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.OpaqueValueExpr.__Internal*) _0.__Instance); } @@ -22259,11 +22595,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DeclRefExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -22283,7 +22619,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DeclRefExpr(void* native, bool skipVTables = false) @@ -22296,7 +22632,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DeclRefExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -22305,7 +22641,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DeclRefExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.DeclRefExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.DeclRefExpr.__Internal*) _0.__Instance); } @@ -22509,11 +22845,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (IntegerLiteral)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -22533,7 +22869,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected IntegerLiteral(void* native, bool skipVTables = false) @@ -22546,7 +22882,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.IntegerLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -22555,7 +22891,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.IntegerLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.IntegerLiteral.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.IntegerLiteral.__Internal*) _0.__Instance); } @@ -22628,11 +22964,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (FixedPointLiteral)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -22652,7 +22988,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected FixedPointLiteral(void* native, bool skipVTables = false) @@ -22665,7 +23001,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FixedPointLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -22674,7 +23010,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FixedPointLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.FixedPointLiteral.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.FixedPointLiteral.__Internal*) _0.__Instance); } @@ -22757,11 +23093,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CharacterLiteral)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -22781,7 +23117,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CharacterLiteral(void* native, bool skipVTables = false) @@ -22794,7 +23130,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CharacterLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -22803,7 +23139,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CharacterLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CharacterLiteral.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CharacterLiteral.__Internal*) _0.__Instance); } @@ -22890,11 +23226,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (FloatingLiteral)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -22914,7 +23250,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected FloatingLiteral(void* native, bool skipVTables = false) @@ -22927,7 +23263,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FloatingLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -22936,7 +23272,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FloatingLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.FloatingLiteral.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.FloatingLiteral.__Internal*) _0.__Instance); } @@ -23021,11 +23357,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ImaginaryLiteral)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -23045,7 +23381,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ImaginaryLiteral(void* native, bool skipVTables = false) @@ -23058,7 +23394,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ImaginaryLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -23067,7 +23403,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ImaginaryLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ImaginaryLiteral.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ImaginaryLiteral.__Internal*) _0.__Instance); } @@ -23153,11 +23489,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (StringLiteral)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -23177,7 +23513,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected StringLiteral(void* native, bool skipVTables = false) @@ -23190,7 +23526,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.StringLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -23199,7 +23535,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.StringLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -23473,11 +23809,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (PredefinedExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -23497,7 +23833,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected PredefinedExpr(void* native, bool skipVTables = false) @@ -23510,7 +23846,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PredefinedExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -23519,7 +23855,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PredefinedExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.PredefinedExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.PredefinedExpr.__Internal*) _0.__Instance); } @@ -23593,11 +23929,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ParenExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -23617,7 +23953,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ParenExpr(void* native, bool skipVTables = false) @@ -23630,7 +23966,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ParenExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -23639,7 +23975,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ParenExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ParenExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ParenExpr.__Internal*) _0.__Instance); } @@ -23735,11 +24071,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (UnaryOperator)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -23759,7 +24095,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected UnaryOperator(void* native, bool skipVTables = false) @@ -23772,7 +24108,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnaryOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -23781,7 +24117,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnaryOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.UnaryOperator.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.UnaryOperator.__Internal*) _0.__Instance); } @@ -23974,11 +24310,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (OffsetOfExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -23998,7 +24334,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected OffsetOfExpr(void* native, bool skipVTables = false) @@ -24011,7 +24347,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.OffsetOfExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -24020,7 +24356,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.OffsetOfExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.OffsetOfExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.OffsetOfExpr.__Internal*) _0.__Instance); } @@ -24124,11 +24460,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (UnaryExprOrTypeTraitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -24148,7 +24484,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected UnaryExprOrTypeTraitExpr(void* native, bool skipVTables = false) @@ -24161,7 +24497,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnaryExprOrTypeTraitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -24170,7 +24506,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnaryExprOrTypeTraitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.UnaryExprOrTypeTraitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.UnaryExprOrTypeTraitExpr.__Internal*) _0.__Instance); } @@ -24316,11 +24652,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ArraySubscriptExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -24340,7 +24676,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ArraySubscriptExpr(void* native, bool skipVTables = false) @@ -24353,7 +24689,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ArraySubscriptExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -24362,7 +24698,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ArraySubscriptExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ArraySubscriptExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ArraySubscriptExpr.__Internal*) _0.__Instance); } @@ -24459,7 +24795,7 @@ namespace CppSharp internal __IntPtr sourceBitField; internal __IntPtr referencedDeclOfCallee; internal byte hasPlaceholderType; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Expr___N_std_S_allocator__S0_ arguments; + internal global::Std.Vector.__Internal arguments; internal __IntPtr callee; internal global::CppSharp.Parser.SourceLocation.__Internal rParenLoc; internal __IntPtr calleeDecl; @@ -24503,11 +24839,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CallExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -24527,7 +24863,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CallExpr(void* native, bool skipVTables = false) @@ -24540,7 +24876,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CallExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -24549,7 +24885,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CallExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -24558,7 +24894,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CallExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -24776,11 +25112,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (MemberExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -24800,7 +25136,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected MemberExpr(void* native, bool skipVTables = false) @@ -24813,7 +25149,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MemberExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -24822,7 +25158,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MemberExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.MemberExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.MemberExpr.__Internal*) _0.__Instance); } @@ -25040,11 +25376,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CompoundLiteralExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -25064,7 +25400,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CompoundLiteralExpr(void* native, bool skipVTables = false) @@ -25077,7 +25413,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CompoundLiteralExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -25086,7 +25422,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CompoundLiteralExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CompoundLiteralExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CompoundLiteralExpr.__Internal*) _0.__Instance); } @@ -25182,11 +25518,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CastExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -25206,7 +25542,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CastExpr(void* native, bool skipVTables = false) @@ -25219,7 +25555,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -25228,7 +25564,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -25237,7 +25573,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CastExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CastExpr.__Internal*) _0.__Instance); if (_0.__castKindName_OwnsNativeMemory) this.CastKindName = _0.CastKindName; @@ -25408,11 +25744,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ImplicitCastExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -25432,7 +25768,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ImplicitCastExpr(void* native, bool skipVTables = false) @@ -25445,7 +25781,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ImplicitCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -25454,7 +25790,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ImplicitCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ImplicitCastExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ImplicitCastExpr.__Internal*) _0.__Instance); } @@ -25523,11 +25859,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ExplicitCastExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -25547,7 +25883,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ExplicitCastExpr(void* native, bool skipVTables = false) @@ -25560,7 +25896,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ExplicitCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -25569,7 +25905,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ExplicitCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -25578,7 +25914,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ExplicitCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ExplicitCastExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ExplicitCastExpr.__Internal*) _0.__Instance); } @@ -25653,11 +25989,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CStyleCastExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -25677,7 +26013,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CStyleCastExpr(void* native, bool skipVTables = false) @@ -25690,7 +26026,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CStyleCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -25699,7 +26035,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CStyleCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CStyleCastExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CStyleCastExpr.__Internal*) _0.__Instance); } @@ -25795,11 +26131,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (BinaryOperator)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -25819,7 +26155,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected BinaryOperator(void* native, bool skipVTables = false) @@ -25832,7 +26168,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BinaryOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -25841,7 +26177,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BinaryOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -25850,7 +26186,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BinaryOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -26192,11 +26528,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CompoundAssignOperator)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -26216,7 +26552,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CompoundAssignOperator(void* native, bool skipVTables = false) @@ -26229,7 +26565,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CompoundAssignOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -26238,7 +26574,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CompoundAssignOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -26339,11 +26675,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (AbstractConditionalOperator)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -26363,7 +26699,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected AbstractConditionalOperator(void* native, bool skipVTables = false) @@ -26376,7 +26712,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AbstractConditionalOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -26385,7 +26721,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AbstractConditionalOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -26394,7 +26730,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AbstractConditionalOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.AbstractConditionalOperator.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.AbstractConditionalOperator.__Internal*) _0.__Instance); } @@ -26519,11 +26855,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ConditionalOperator)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -26543,7 +26879,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ConditionalOperator(void* native, bool skipVTables = false) @@ -26556,7 +26892,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ConditionalOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -26565,7 +26901,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ConditionalOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ConditionalOperator.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ConditionalOperator.__Internal*) _0.__Instance); } @@ -26645,11 +26981,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (BinaryConditionalOperator)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -26669,7 +27005,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected BinaryConditionalOperator(void* native, bool skipVTables = false) @@ -26682,7 +27018,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BinaryConditionalOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -26691,7 +27027,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BinaryConditionalOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.BinaryConditionalOperator.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.BinaryConditionalOperator.__Internal*) _0.__Instance); } @@ -26766,11 +27102,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (AddrLabelExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -26790,7 +27126,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected AddrLabelExpr(void* native, bool skipVTables = false) @@ -26803,7 +27139,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AddrLabelExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -26812,7 +27148,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AddrLabelExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.AddrLabelExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.AddrLabelExpr.__Internal*) _0.__Instance); } @@ -26886,11 +27222,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (StmtExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -26910,7 +27246,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected StmtExpr(void* native, bool skipVTables = false) @@ -26923,7 +27259,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.StmtExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -26932,7 +27268,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.StmtExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.StmtExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.StmtExpr.__Internal*) _0.__Instance); } @@ -27020,11 +27356,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ShuffleVectorExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -27044,7 +27380,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ShuffleVectorExpr(void* native, bool skipVTables = false) @@ -27057,7 +27393,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ShuffleVectorExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -27066,7 +27402,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ShuffleVectorExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ShuffleVectorExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ShuffleVectorExpr.__Internal*) _0.__Instance); } @@ -27153,11 +27489,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ConvertVectorExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -27177,7 +27513,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ConvertVectorExpr(void* native, bool skipVTables = false) @@ -27190,7 +27526,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ConvertVectorExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -27199,7 +27535,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ConvertVectorExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ConvertVectorExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ConvertVectorExpr.__Internal*) _0.__Instance); } @@ -27292,11 +27628,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ChooseExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -27316,7 +27652,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ChooseExpr(void* native, bool skipVTables = false) @@ -27329,7 +27665,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ChooseExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -27338,7 +27674,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ChooseExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ChooseExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ChooseExpr.__Internal*) _0.__Instance); } @@ -27492,11 +27828,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (GNUNullExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -27516,7 +27852,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected GNUNullExpr(void* native, bool skipVTables = false) @@ -27529,7 +27865,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.GNUNullExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -27538,7 +27874,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.GNUNullExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.GNUNullExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.GNUNullExpr.__Internal*) _0.__Instance); } @@ -27600,11 +27936,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (VAArgExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -27624,7 +27960,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected VAArgExpr(void* native, bool skipVTables = false) @@ -27637,7 +27973,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VAArgExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -27646,7 +27982,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VAArgExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.VAArgExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.VAArgExpr.__Internal*) _0.__Instance); } @@ -27756,11 +28092,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (InitListExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -27780,7 +28116,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected InitListExpr(void* native, bool skipVTables = false) @@ -27793,7 +28129,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.InitListExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -27802,7 +28138,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.InitListExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.InitListExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.InitListExpr.__Internal*) _0.__Instance); } @@ -28029,7 +28365,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.DesignatedInitExpr.Designator managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.DesignatedInitExpr.Designator managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -28042,11 +28390,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Designator)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -28066,7 +28414,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Designator(void* native, bool skipVTables = false) @@ -28080,7 +28428,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DesignatedInitExpr.Designator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -28088,7 +28436,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DesignatedInitExpr.Designator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.DesignatedInitExpr.Designator.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.DesignatedInitExpr.Designator.__Internal*) _0.__Instance); } @@ -28271,7 +28619,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.DesignatedInitExpr.FieldDesignator managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.DesignatedInitExpr.FieldDesignator managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -28284,11 +28644,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (FieldDesignator)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -28308,7 +28668,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected FieldDesignator(void* native, bool skipVTables = false) @@ -28322,7 +28682,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DesignatedInitExpr.FieldDesignator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -28330,7 +28690,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DesignatedInitExpr.FieldDesignator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.DesignatedInitExpr.FieldDesignator.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.DesignatedInitExpr.FieldDesignator.__Internal*) _0.__Instance); } @@ -28367,7 +28727,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.DesignatedInitExpr.ArrayOrRangeDesignator managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.DesignatedInitExpr.ArrayOrRangeDesignator managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -28380,11 +28752,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ArrayOrRangeDesignator)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -28404,7 +28776,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ArrayOrRangeDesignator(void* native, bool skipVTables = false) @@ -28418,7 +28790,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DesignatedInitExpr.ArrayOrRangeDesignator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -28426,7 +28798,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DesignatedInitExpr.ArrayOrRangeDesignator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.DesignatedInitExpr.ArrayOrRangeDesignator.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.DesignatedInitExpr.ArrayOrRangeDesignator.__Internal*) _0.__Instance); } @@ -28458,11 +28830,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DesignatedInitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -28482,7 +28854,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DesignatedInitExpr(void* native, bool skipVTables = false) @@ -28495,7 +28867,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DesignatedInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -28504,7 +28876,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DesignatedInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.DesignatedInitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.DesignatedInitExpr.__Internal*) _0.__Instance); } @@ -28630,11 +29002,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (NoInitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -28654,7 +29026,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected NoInitExpr(void* native, bool skipVTables = false) @@ -28667,7 +29039,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.NoInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -28676,7 +29048,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.NoInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.NoInitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.NoInitExpr.__Internal*) _0.__Instance); } } @@ -28723,11 +29095,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DesignatedInitUpdateExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -28747,7 +29119,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DesignatedInitUpdateExpr(void* native, bool skipVTables = false) @@ -28760,7 +29132,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DesignatedInitUpdateExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -28769,7 +29141,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DesignatedInitUpdateExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.DesignatedInitUpdateExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.DesignatedInitUpdateExpr.__Internal*) _0.__Instance); } @@ -28844,11 +29216,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ArrayInitLoopExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -28868,7 +29240,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ArrayInitLoopExpr(void* native, bool skipVTables = false) @@ -28881,7 +29253,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ArrayInitLoopExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -28890,7 +29262,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ArrayInitLoopExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ArrayInitLoopExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ArrayInitLoopExpr.__Internal*) _0.__Instance); } @@ -28963,11 +29335,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ArrayInitIndexExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -28987,7 +29359,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ArrayInitIndexExpr(void* native, bool skipVTables = false) @@ -29000,7 +29372,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ArrayInitIndexExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -29009,7 +29381,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ArrayInitIndexExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ArrayInitIndexExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ArrayInitIndexExpr.__Internal*) _0.__Instance); } } @@ -29054,11 +29426,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ImplicitValueInitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -29078,7 +29450,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ImplicitValueInitExpr(void* native, bool skipVTables = false) @@ -29091,7 +29463,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ImplicitValueInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -29100,7 +29472,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ImplicitValueInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ImplicitValueInitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ImplicitValueInitExpr.__Internal*) _0.__Instance); } } @@ -29148,11 +29520,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ParenListExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -29172,7 +29544,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ParenListExpr(void* native, bool skipVTables = false) @@ -29185,7 +29557,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ParenListExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -29194,7 +29566,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ParenListExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ParenListExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ParenListExpr.__Internal*) _0.__Instance); } @@ -29286,11 +29658,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (GenericSelectionExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -29310,7 +29682,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected GenericSelectionExpr(void* native, bool skipVTables = false) @@ -29323,7 +29695,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.GenericSelectionExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -29332,7 +29704,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.GenericSelectionExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.GenericSelectionExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.GenericSelectionExpr.__Internal*) _0.__Instance); } @@ -29488,11 +29860,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ExtVectorElementExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -29512,7 +29884,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ExtVectorElementExpr(void* native, bool skipVTables = false) @@ -29525,7 +29897,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ExtVectorElementExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -29534,7 +29906,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ExtVectorElementExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ExtVectorElementExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ExtVectorElementExpr.__Internal*) _0.__Instance); } @@ -29647,11 +30019,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (BlockExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -29671,7 +30043,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected BlockExpr(void* native, bool skipVTables = false) @@ -29684,7 +30056,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BlockExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -29693,7 +30065,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BlockExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.BlockExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.BlockExpr.__Internal*) _0.__Instance); } @@ -29768,11 +30140,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (AsTypeExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -29792,7 +30164,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected AsTypeExpr(void* native, bool skipVTables = false) @@ -29805,7 +30177,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AsTypeExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -29814,7 +30186,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AsTypeExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.AsTypeExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.AsTypeExpr.__Internal*) _0.__Instance); } @@ -29903,11 +30275,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (PseudoObjectExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -29927,7 +30299,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected PseudoObjectExpr(void* native, bool skipVTables = false) @@ -29940,7 +30312,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PseudoObjectExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -29949,7 +30321,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PseudoObjectExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.PseudoObjectExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.PseudoObjectExpr.__Internal*) _0.__Instance); } @@ -30113,11 +30485,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (AtomicExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -30137,7 +30509,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected AtomicExpr(void* native, bool skipVTables = false) @@ -30150,7 +30522,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AtomicExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -30159,7 +30531,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AtomicExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.AtomicExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.AtomicExpr.__Internal*) _0.__Instance); } @@ -30408,11 +30780,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TypoExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -30432,7 +30804,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TypoExpr(void* native, bool skipVTables = false) @@ -30445,7 +30817,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypoExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -30454,7 +30826,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypoExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.TypoExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.TypoExpr.__Internal*) _0.__Instance); } } @@ -30482,7 +30854,7 @@ namespace CppSharp internal __IntPtr sourceBitField; internal __IntPtr referencedDeclOfCallee; internal byte hasPlaceholderType; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Expr___N_std_S_allocator__S0_ arguments; + internal global::Std.Vector.__Internal arguments; internal __IntPtr callee; internal global::CppSharp.Parser.SourceLocation.__Internal rParenLoc; internal __IntPtr calleeDecl; @@ -30515,11 +30887,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXOperatorCallExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -30539,7 +30911,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXOperatorCallExpr(void* native, bool skipVTables = false) @@ -30552,7 +30924,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXOperatorCallExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -30561,7 +30933,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXOperatorCallExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -30659,7 +31031,7 @@ namespace CppSharp internal __IntPtr sourceBitField; internal __IntPtr referencedDeclOfCallee; internal byte hasPlaceholderType; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Expr___N_std_S_allocator__S0_ arguments; + internal global::Std.Vector.__Internal arguments; internal __IntPtr callee; internal global::CppSharp.Parser.SourceLocation.__Internal rParenLoc; internal __IntPtr calleeDecl; @@ -30690,11 +31062,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXMemberCallExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -30714,7 +31086,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXMemberCallExpr(void* native, bool skipVTables = false) @@ -30727,7 +31099,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXMemberCallExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -30736,7 +31108,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXMemberCallExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -30810,7 +31182,7 @@ namespace CppSharp internal __IntPtr sourceBitField; internal __IntPtr referencedDeclOfCallee; internal byte hasPlaceholderType; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Expr___N_std_S_allocator__S0_ arguments; + internal global::Std.Vector.__Internal arguments; internal __IntPtr callee; internal global::CppSharp.Parser.SourceLocation.__Internal rParenLoc; internal __IntPtr calleeDecl; @@ -30840,11 +31212,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CUDAKernelCallExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -30864,7 +31236,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CUDAKernelCallExpr(void* native, bool skipVTables = false) @@ -30877,7 +31249,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CUDAKernelCallExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -30886,7 +31258,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CUDAKernelCallExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -30979,11 +31351,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXNamedCastExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -31003,7 +31375,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXNamedCastExpr(void* native, bool skipVTables = false) @@ -31016,7 +31388,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXNamedCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -31025,7 +31397,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXNamedCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -31034,7 +31406,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXNamedCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXNamedCastExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXNamedCastExpr.__Internal*) _0.__Instance); if (_0.__castName_OwnsNativeMemory) this.CastName = _0.CastName; @@ -31164,11 +31536,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXStaticCastExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -31188,7 +31560,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXStaticCastExpr(void* native, bool skipVTables = false) @@ -31201,7 +31573,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXStaticCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -31210,7 +31582,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXStaticCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXStaticCastExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXStaticCastExpr.__Internal*) _0.__Instance); } } @@ -31268,11 +31640,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXDynamicCastExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -31292,7 +31664,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXDynamicCastExpr(void* native, bool skipVTables = false) @@ -31305,7 +31677,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXDynamicCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -31314,7 +31686,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXDynamicCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXDynamicCastExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXDynamicCastExpr.__Internal*) _0.__Instance); } @@ -31384,11 +31756,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXReinterpretCastExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -31408,7 +31780,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXReinterpretCastExpr(void* native, bool skipVTables = false) @@ -31421,7 +31793,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXReinterpretCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -31430,7 +31802,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXReinterpretCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXReinterpretCastExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXReinterpretCastExpr.__Internal*) _0.__Instance); } } @@ -31487,11 +31859,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXConstCastExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -31511,7 +31883,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXConstCastExpr(void* native, bool skipVTables = false) @@ -31524,7 +31896,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXConstCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -31533,7 +31905,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXConstCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXConstCastExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXConstCastExpr.__Internal*) _0.__Instance); } } @@ -31561,7 +31933,7 @@ namespace CppSharp internal __IntPtr sourceBitField; internal __IntPtr referencedDeclOfCallee; internal byte hasPlaceholderType; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Expr___N_std_S_allocator__S0_ arguments; + internal global::Std.Vector.__Internal arguments; internal __IntPtr callee; internal global::CppSharp.Parser.SourceLocation.__Internal rParenLoc; internal __IntPtr calleeDecl; @@ -31603,11 +31975,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (UserDefinedLiteral)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -31627,7 +31999,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected UserDefinedLiteral(void* native, bool skipVTables = false) @@ -31640,7 +32012,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UserDefinedLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -31649,7 +32021,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UserDefinedLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -31754,11 +32126,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXBoolLiteralExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -31778,7 +32150,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXBoolLiteralExpr(void* native, bool skipVTables = false) @@ -31791,7 +32163,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXBoolLiteralExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -31800,7 +32172,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXBoolLiteralExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXBoolLiteralExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXBoolLiteralExpr.__Internal*) _0.__Instance); } @@ -31872,11 +32244,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXNullPtrLiteralExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -31896,7 +32268,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXNullPtrLiteralExpr(void* native, bool skipVTables = false) @@ -31909,7 +32281,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXNullPtrLiteralExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -31918,7 +32290,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXNullPtrLiteralExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXNullPtrLiteralExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXNullPtrLiteralExpr.__Internal*) _0.__Instance); } @@ -31977,11 +32349,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXStdInitializerListExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -32001,7 +32373,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXStdInitializerListExpr(void* native, bool skipVTables = false) @@ -32014,7 +32386,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXStdInitializerListExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -32023,7 +32395,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXStdInitializerListExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXStdInitializerListExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXStdInitializerListExpr.__Internal*) _0.__Instance); } @@ -32085,11 +32457,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXTypeidExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -32109,7 +32481,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXTypeidExpr(void* native, bool skipVTables = false) @@ -32122,7 +32494,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXTypeidExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -32131,7 +32503,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXTypeidExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXTypeidExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXTypeidExpr.__Internal*) _0.__Instance); } @@ -32220,11 +32592,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (MSPropertyRefExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -32244,7 +32616,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected MSPropertyRefExpr(void* native, bool skipVTables = false) @@ -32257,7 +32629,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MSPropertyRefExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -32266,7 +32638,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MSPropertyRefExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.MSPropertyRefExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.MSPropertyRefExpr.__Internal*) _0.__Instance); } @@ -32367,11 +32739,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (MSPropertySubscriptExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -32391,7 +32763,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected MSPropertySubscriptExpr(void* native, bool skipVTables = false) @@ -32404,7 +32776,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MSPropertySubscriptExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -32413,7 +32785,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MSPropertySubscriptExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.MSPropertySubscriptExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.MSPropertySubscriptExpr.__Internal*) _0.__Instance); } @@ -32505,11 +32877,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXUuidofExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -32529,7 +32901,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXUuidofExpr(void* native, bool skipVTables = false) @@ -32542,7 +32914,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXUuidofExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -32551,7 +32923,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXUuidofExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -32657,11 +33029,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXThisExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -32681,7 +33053,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXThisExpr(void* native, bool skipVTables = false) @@ -32694,7 +33066,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXThisExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -32703,7 +33075,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXThisExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXThisExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXThisExpr.__Internal*) _0.__Instance); } @@ -32777,11 +33149,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXThrowExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -32801,7 +33173,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXThrowExpr(void* native, bool skipVTables = false) @@ -32814,7 +33186,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXThrowExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -32823,7 +33195,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXThrowExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXThrowExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXThrowExpr.__Internal*) _0.__Instance); } @@ -32910,11 +33282,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXDefaultArgExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -32934,7 +33306,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXDefaultArgExpr(void* native, bool skipVTables = false) @@ -32947,7 +33319,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXDefaultArgExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -32956,7 +33328,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXDefaultArgExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXDefaultArgExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXDefaultArgExpr.__Internal*) _0.__Instance); } @@ -33030,11 +33402,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXDefaultInitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -33054,7 +33426,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXDefaultInitExpr(void* native, bool skipVTables = false) @@ -33067,7 +33439,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXDefaultInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -33076,7 +33448,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXDefaultInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXDefaultInitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXDefaultInitExpr.__Internal*) _0.__Instance); } @@ -33150,11 +33522,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXBindTemporaryExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -33174,7 +33546,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXBindTemporaryExpr(void* native, bool skipVTables = false) @@ -33187,7 +33559,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXBindTemporaryExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -33196,7 +33568,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXBindTemporaryExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXBindTemporaryExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXBindTemporaryExpr.__Internal*) _0.__Instance); } @@ -33238,7 +33610,7 @@ namespace CppSharp internal __IntPtr sourceBitField; internal __IntPtr referencedDeclOfCallee; internal byte hasPlaceholderType; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Expr___N_std_S_allocator__S0_ arguments; + internal global::Std.Vector.__Internal arguments; internal global::CppSharp.Parser.SourceLocation.__Internal location; internal byte elidable; internal byte hadMultipleCandidates; @@ -33290,11 +33662,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXConstructExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -33314,7 +33686,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXConstructExpr(void* native, bool skipVTables = false) @@ -33327,7 +33699,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXConstructExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -33336,7 +33708,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXConstructExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -33345,7 +33717,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXConstructExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -33552,11 +33924,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXInheritedCtorInitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -33576,7 +33948,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXInheritedCtorInitExpr(void* native, bool skipVTables = false) @@ -33589,7 +33961,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXInheritedCtorInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -33598,7 +33970,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXInheritedCtorInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXInheritedCtorInitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXInheritedCtorInitExpr.__Internal*) _0.__Instance); } @@ -33693,11 +34065,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXFunctionalCastExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -33717,7 +34089,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXFunctionalCastExpr(void* native, bool skipVTables = false) @@ -33730,7 +34102,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXFunctionalCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -33739,7 +34111,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXFunctionalCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXFunctionalCastExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXFunctionalCastExpr.__Internal*) _0.__Instance); } @@ -33806,7 +34178,7 @@ namespace CppSharp internal __IntPtr sourceBitField; internal __IntPtr referencedDeclOfCallee; internal byte hasPlaceholderType; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Expr___N_std_S_allocator__S0_ arguments; + internal global::Std.Vector.__Internal arguments; internal global::CppSharp.Parser.SourceLocation.__Internal location; internal byte elidable; internal byte hadMultipleCandidates; @@ -33835,11 +34207,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXTemporaryObjectExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -33859,7 +34231,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXTemporaryObjectExpr(void* native, bool skipVTables = false) @@ -33872,7 +34244,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXTemporaryObjectExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -33881,7 +34253,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXTemporaryObjectExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -33927,7 +34299,7 @@ namespace CppSharp internal __IntPtr sourceBitField; internal __IntPtr referencedDeclOfCallee; internal byte hasPlaceholderType; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Expr___N_std_S_allocator__S0_ capture_inits; + internal global::Std.Vector.__Internal capture_inits; internal global::CppSharp.Parser.SourceLocation.__Internal captureDefaultLoc; internal uint capture_size; internal global::CppSharp.Parser.SourceRange.__Internal introducerRange; @@ -33969,11 +34341,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (LambdaExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -33993,7 +34365,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected LambdaExpr(void* native, bool skipVTables = false) @@ -34006,7 +34378,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.LambdaExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -34015,7 +34387,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.LambdaExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -34230,11 +34602,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXScalarValueInitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -34254,7 +34626,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXScalarValueInitExpr(void* native, bool skipVTables = false) @@ -34267,7 +34639,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXScalarValueInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -34276,7 +34648,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXScalarValueInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXScalarValueInitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXScalarValueInitExpr.__Internal*) _0.__Instance); } @@ -34317,7 +34689,7 @@ namespace CppSharp internal __IntPtr sourceBitField; internal __IntPtr referencedDeclOfCallee; internal byte hasPlaceholderType; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Expr___N_std_S_allocator__S0_ placement_arguments; + internal global::Std.Vector.__Internal placement_arguments; internal __IntPtr operatorNew; internal __IntPtr operatorDelete; internal global::CppSharp.Parser.AST.QualifiedType.__Internal allocatedType; @@ -34371,11 +34743,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXNewExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -34395,7 +34767,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXNewExpr(void* native, bool skipVTables = false) @@ -34408,7 +34780,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXNewExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -34417,7 +34789,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXNewExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -34709,11 +35081,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXDeleteExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -34733,7 +35105,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXDeleteExpr(void* native, bool skipVTables = false) @@ -34746,7 +35118,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXDeleteExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -34755,7 +35127,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXDeleteExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXDeleteExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXDeleteExpr.__Internal*) _0.__Instance); } @@ -34890,11 +35262,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXPseudoDestructorExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -34914,7 +35286,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXPseudoDestructorExpr(void* native, bool skipVTables = false) @@ -34927,7 +35299,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXPseudoDestructorExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -34936,7 +35308,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXPseudoDestructorExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXPseudoDestructorExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXPseudoDestructorExpr.__Internal*) _0.__Instance); } @@ -35090,11 +35462,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TypeTraitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -35114,7 +35486,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TypeTraitExpr(void* native, bool skipVTables = false) @@ -35127,7 +35499,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypeTraitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -35136,7 +35508,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypeTraitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.TypeTraitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.TypeTraitExpr.__Internal*) _0.__Instance); } @@ -35210,11 +35582,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ArrayTypeTraitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -35234,7 +35606,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ArrayTypeTraitExpr(void* native, bool skipVTables = false) @@ -35247,7 +35619,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ArrayTypeTraitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -35256,7 +35628,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ArrayTypeTraitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ArrayTypeTraitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ArrayTypeTraitExpr.__Internal*) _0.__Instance); } @@ -35345,11 +35717,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ExpressionTraitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -35369,7 +35741,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ExpressionTraitExpr(void* native, bool skipVTables = false) @@ -35382,7 +35754,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ExpressionTraitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -35391,7 +35763,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ExpressionTraitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ExpressionTraitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ExpressionTraitExpr.__Internal*) _0.__Instance); } @@ -35479,7 +35851,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.OverloadExpr.FindResult managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.OverloadExpr.FindResult managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -35492,11 +35876,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (FindResult)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -35516,7 +35900,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected FindResult(void* native, bool skipVTables = false) @@ -35530,7 +35914,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.OverloadExpr.FindResult.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -35538,7 +35922,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.OverloadExpr.FindResult.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.OverloadExpr.FindResult.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.OverloadExpr.FindResult.__Internal*) _0.__Instance); } @@ -35570,11 +35954,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (OverloadExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -35594,7 +35978,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected OverloadExpr(void* native, bool skipVTables = false) @@ -35607,7 +35991,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.OverloadExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -35616,7 +36000,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.OverloadExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -35625,7 +36009,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.OverloadExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.OverloadExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.OverloadExpr.__Internal*) _0.__Instance); } @@ -35789,11 +36173,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (UnresolvedLookupExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -35813,7 +36197,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected UnresolvedLookupExpr(void* native, bool skipVTables = false) @@ -35826,7 +36210,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnresolvedLookupExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -35835,7 +36219,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnresolvedLookupExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.UnresolvedLookupExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.UnresolvedLookupExpr.__Internal*) _0.__Instance); } @@ -35913,11 +36297,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DependentScopeDeclRefExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -35937,7 +36321,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DependentScopeDeclRefExpr(void* native, bool skipVTables = false) @@ -35950,7 +36334,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DependentScopeDeclRefExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -35959,7 +36343,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DependentScopeDeclRefExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.DependentScopeDeclRefExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.DependentScopeDeclRefExpr.__Internal*) _0.__Instance); } @@ -36098,11 +36482,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ExprWithCleanups)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -36122,7 +36506,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ExprWithCleanups(void* native, bool skipVTables = false) @@ -36135,7 +36519,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ExprWithCleanups.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -36144,7 +36528,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ExprWithCleanups.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ExprWithCleanups.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ExprWithCleanups.__Internal*) _0.__Instance); } @@ -36198,7 +36582,7 @@ namespace CppSharp internal __IntPtr sourceBitField; internal __IntPtr referencedDeclOfCallee; internal byte hasPlaceholderType; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Expr___N_std_S_allocator__S0_ arguments; + internal global::Std.Vector.__Internal arguments; internal global::CppSharp.Parser.SourceLocation.__Internal lParenLoc; internal global::CppSharp.Parser.SourceLocation.__Internal rParenLoc; internal global::CppSharp.Parser.AST.QualifiedType.__Internal typeAsWritten; @@ -36236,11 +36620,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXUnresolvedConstructExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -36260,7 +36644,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXUnresolvedConstructExpr(void* native, bool skipVTables = false) @@ -36273,7 +36657,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXUnresolvedConstructExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -36282,7 +36666,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXUnresolvedConstructExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -36455,11 +36839,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXDependentScopeMemberExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -36479,7 +36863,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXDependentScopeMemberExpr(void* native, bool skipVTables = false) @@ -36492,7 +36876,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXDependentScopeMemberExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -36501,7 +36885,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXDependentScopeMemberExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXDependentScopeMemberExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXDependentScopeMemberExpr.__Internal*) _0.__Instance); } @@ -36734,11 +37118,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (UnresolvedMemberExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -36758,7 +37142,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected UnresolvedMemberExpr(void* native, bool skipVTables = false) @@ -36771,7 +37155,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnresolvedMemberExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -36780,7 +37164,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnresolvedMemberExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.UnresolvedMemberExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.UnresolvedMemberExpr.__Internal*) _0.__Instance); } @@ -36921,11 +37305,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXNoexceptExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -36945,7 +37329,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXNoexceptExpr(void* native, bool skipVTables = false) @@ -36958,7 +37342,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXNoexceptExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -36967,7 +37351,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXNoexceptExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXNoexceptExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXNoexceptExpr.__Internal*) _0.__Instance); } @@ -37041,11 +37425,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (PackExpansionExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -37065,7 +37449,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected PackExpansionExpr(void* native, bool skipVTables = false) @@ -37078,7 +37462,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PackExpansionExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -37087,7 +37471,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PackExpansionExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.PackExpansionExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.PackExpansionExpr.__Internal*) _0.__Instance); } @@ -37165,11 +37549,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (SizeOfPackExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -37189,7 +37573,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected SizeOfPackExpr(void* native, bool skipVTables = false) @@ -37202,7 +37586,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SizeOfPackExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -37211,7 +37595,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SizeOfPackExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.SizeOfPackExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.SizeOfPackExpr.__Internal*) _0.__Instance); } @@ -37337,11 +37721,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (SubstNonTypeTemplateParmExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -37361,7 +37745,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected SubstNonTypeTemplateParmExpr(void* native, bool skipVTables = false) @@ -37374,7 +37758,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SubstNonTypeTemplateParmExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -37383,7 +37767,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SubstNonTypeTemplateParmExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.SubstNonTypeTemplateParmExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.SubstNonTypeTemplateParmExpr.__Internal*) _0.__Instance); } @@ -37457,11 +37841,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (SubstNonTypeTemplateParmPackExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -37481,7 +37865,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected SubstNonTypeTemplateParmPackExpr(void* native, bool skipVTables = false) @@ -37494,7 +37878,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SubstNonTypeTemplateParmPackExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -37503,7 +37887,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SubstNonTypeTemplateParmPackExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.SubstNonTypeTemplateParmPackExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.SubstNonTypeTemplateParmPackExpr.__Internal*) _0.__Instance); } @@ -37578,11 +37962,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (FunctionParmPackExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -37602,7 +37986,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected FunctionParmPackExpr(void* native, bool skipVTables = false) @@ -37615,7 +37999,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FunctionParmPackExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -37624,7 +38008,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FunctionParmPackExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.FunctionParmPackExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.FunctionParmPackExpr.__Internal*) _0.__Instance); } @@ -37704,7 +38088,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.MaterializeTemporaryExpr.ExtraState managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.MaterializeTemporaryExpr.ExtraState managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -37717,11 +38113,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ExtraState)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -37741,7 +38137,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ExtraState(void* native, bool skipVTables = false) @@ -37755,7 +38151,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MaterializeTemporaryExpr.ExtraState.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -37763,7 +38159,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MaterializeTemporaryExpr.ExtraState.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.MaterializeTemporaryExpr.ExtraState.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.MaterializeTemporaryExpr.ExtraState.__Internal*) _0.__Instance); } @@ -37795,11 +38191,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (MaterializeTemporaryExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -37819,7 +38215,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected MaterializeTemporaryExpr(void* native, bool skipVTables = false) @@ -37832,7 +38228,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MaterializeTemporaryExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -37841,7 +38237,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MaterializeTemporaryExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.MaterializeTemporaryExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.MaterializeTemporaryExpr.__Internal*) _0.__Instance); } @@ -37948,11 +38344,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXFoldExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -37972,7 +38368,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXFoldExpr(void* native, bool skipVTables = false) @@ -37985,7 +38381,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXFoldExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -37994,7 +38390,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXFoldExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXFoldExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXFoldExpr.__Internal*) _0.__Instance); } @@ -38165,11 +38561,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CoroutineSuspendExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -38189,7 +38585,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CoroutineSuspendExpr(void* native, bool skipVTables = false) @@ -38202,7 +38598,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoroutineSuspendExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -38211,7 +38607,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoroutineSuspendExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -38220,7 +38616,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoroutineSuspendExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CoroutineSuspendExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CoroutineSuspendExpr.__Internal*) _0.__Instance); } @@ -38361,11 +38757,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CoawaitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -38385,7 +38781,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CoawaitExpr(void* native, bool skipVTables = false) @@ -38398,7 +38794,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoawaitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -38407,7 +38803,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoawaitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CoawaitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CoawaitExpr.__Internal*) _0.__Instance); } @@ -38482,11 +38878,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DependentCoawaitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -38506,7 +38902,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DependentCoawaitExpr(void* native, bool skipVTables = false) @@ -38519,7 +38915,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DependentCoawaitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -38528,7 +38924,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DependentCoawaitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.DependentCoawaitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.DependentCoawaitExpr.__Internal*) _0.__Instance); } @@ -38621,11 +39017,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CoyieldExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -38645,7 +39041,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CoyieldExpr(void* native, bool skipVTables = false) @@ -38658,7 +39054,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoyieldExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -38667,7 +39063,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoyieldExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CoyieldExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CoyieldExpr.__Internal*) _0.__Instance); } @@ -38767,7 +39163,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.ParserTargetInfo managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.ParserTargetInfo managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -38780,11 +39188,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ParserTargetInfo)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -38804,7 +39212,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ParserTargetInfo(void* native, bool skipVTables = false) @@ -38818,7 +39226,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.ParserTargetInfo.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -38826,7 +39234,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.ParserTargetInfo.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -39427,7 +39835,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.Parser managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.Parser managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -39440,11 +39860,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Parser)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -39464,7 +39884,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Parser(void* native, bool skipVTables = false) @@ -39477,17 +39897,18 @@ namespace CppSharp public unsafe partial class CppParserOptions : IDisposable { - [StructLayout(LayoutKind.Sequential, Size = 280)] + [StructLayout(LayoutKind.Sequential, Size = 304)] public partial struct __Internal { - internal global::Std.Vector.__Internalc__N_std_S_vector____N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C___N_std_S_allocator__S0_ Arguments; - internal global::Std.Vector.__Internalc__N_std_S_vector____N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C___N_std_S_allocator__S0_ CompilationOptions; - internal global::Std.Vector.__Internalc__N_std_S_vector____N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C___N_std_S_allocator__S0_ SourceFiles; - internal global::Std.Vector.__Internalc__N_std_S_vector____N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C___N_std_S_allocator__S0_ IncludeDirs; - internal global::Std.Vector.__Internalc__N_std_S_vector____N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C___N_std_S_allocator__S0_ SystemIncludeDirs; - internal global::Std.Vector.__Internalc__N_std_S_vector____N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C___N_std_S_allocator__S0_ Defines; - internal global::Std.Vector.__Internalc__N_std_S_vector____N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C___N_std_S_allocator__S0_ Undefines; - internal global::Std.Vector.__Internalc__N_std_S_vector____N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C___N_std_S_allocator__S0_ SupportedStdTypes; + internal global::Std.Vector.__Internal Arguments; + internal global::Std.Vector.__Internal CompilationOptions; + internal global::Std.Vector.__Internal SourceFiles; + internal global::Std.Vector.__Internal IncludeDirs; + internal global::Std.Vector.__Internal SystemIncludeDirs; + internal global::Std.Vector.__Internal Defines; + internal global::Std.Vector.__Internal Undefines; + internal global::Std.Vector.__Internal SupportedStdTypes; + internal global::Std.Vector.__Internal SupportedFunctionTemplates; internal __IntPtr ASTContext; internal int toolSetToUse; internal global::Std.BasicString.__Internalc__N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C targetTriple; @@ -39582,6 +40003,15 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser16CppParserOptions22clearSupportedStdTypesEv", CallingConvention = __CallingConvention.Cdecl)] internal static extern void ClearSupportedStdTypes(__IntPtr __instance); + [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser16CppParserOptions29getSupportedFunctionTemplatesEj", CallingConvention = __CallingConvention.Cdecl)] + internal static extern __IntPtr GetSupportedFunctionTemplates(__IntPtr __instance, uint i); + + [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser16CppParserOptions29addSupportedFunctionTemplatesEPKc", CallingConvention = __CallingConvention.Cdecl)] + internal static extern void AddSupportedFunctionTemplates(__IntPtr __instance, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(CppSharp.Runtime.UTF8Marshaller))] string s); + + [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser16CppParserOptions31clearSupportedFunctionTemplatesEv", CallingConvention = __CallingConvention.Cdecl)] + internal static extern void ClearSupportedFunctionTemplates(__IntPtr __instance); + [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser16CppParserOptions15getClangVersionB5cxx11Ev", CallingConvention = __CallingConvention.Cdecl)] internal static extern void GetClangVersion(__IntPtr @return, __IntPtr __instance); @@ -39608,11 +40038,26 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser16CppParserOptions25getSupportedStdTypesCountEv", CallingConvention = __CallingConvention.Cdecl)] internal static extern uint GetSupportedStdTypesCount(__IntPtr __instance); + + [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser16CppParserOptions34getSupportedFunctionTemplatesCountEv", CallingConvention = __CallingConvention.Cdecl)] + internal static extern uint GetSupportedFunctionTemplatesCount(__IntPtr __instance); } public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.CppParserOptions managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.CppParserOptions managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -39625,11 +40070,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CppParserOptions)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -39649,7 +40094,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CppParserOptions(void* native, bool skipVTables = false) @@ -39663,7 +40108,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.CppParserOptions.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -39671,7 +40116,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.CppParserOptions.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -39826,6 +40271,22 @@ namespace CppSharp __Internal.ClearSupportedStdTypes(__Instance); } + public string GetSupportedFunctionTemplates(uint i) + { + var __ret = __Internal.GetSupportedFunctionTemplates(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + } + + public void AddSupportedFunctionTemplates(string s) + { + __Internal.AddSupportedFunctionTemplates(__Instance, s); + } + + public void ClearSupportedFunctionTemplates() + { + __Internal.ClearSupportedFunctionTemplates(__Instance); + } + public global::CppSharp.Parser.AST.ASTContext ASTContext { get @@ -40055,6 +40516,15 @@ namespace CppSharp return __ret; } } + + public uint SupportedFunctionTemplatesCount + { + get + { + var __ret = __Internal.GetSupportedFunctionTemplatesCount(__Instance); + return __ret; + } + } } public unsafe partial class CppLinkerOptions : IDisposable @@ -40062,9 +40532,9 @@ namespace CppSharp [StructLayout(LayoutKind.Sequential, Size = 72)] public partial struct __Internal { - internal global::Std.Vector.__Internalc__N_std_S_vector____N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C___N_std_S_allocator__S0_ Arguments; - internal global::Std.Vector.__Internalc__N_std_S_vector____N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C___N_std_S_allocator__S0_ LibraryDirs; - internal global::Std.Vector.__Internalc__N_std_S_vector____N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C___N_std_S_allocator__S0_ Libraries; + internal global::Std.Vector.__Internal Arguments; + internal global::Std.Vector.__Internal LibraryDirs; + internal global::Std.Vector.__Internal Libraries; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser16CppLinkerOptionsC2Ev", CallingConvention = __CallingConvention.Cdecl)] internal static extern void ctor(__IntPtr __instance); @@ -40114,7 +40584,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.CppLinkerOptions managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.CppLinkerOptions managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -40127,11 +40609,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CppLinkerOptions)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -40151,7 +40633,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CppLinkerOptions(void* native, bool skipVTables = false) @@ -40165,7 +40647,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.CppLinkerOptions.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -40173,7 +40655,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.CppLinkerOptions.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -40299,7 +40781,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.ParserDiagnostic managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.ParserDiagnostic managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -40312,11 +40806,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ParserDiagnostic)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -40336,7 +40830,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ParserDiagnostic(void* native, bool skipVTables = false) @@ -40350,7 +40844,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.ParserDiagnostic.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -40358,7 +40852,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.ParserDiagnostic.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -40459,8 +40953,8 @@ namespace CppSharp public partial struct __Internal { internal global::CppSharp.Parser.ParserResultKind kind; - internal global::Std.Vector.__Internalc__N_std_S_vector____N_CppSharp_N_CppParser_S_ParserDiagnostic___N_std_S_allocator__S0_ Diagnostics; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_NativeLibrary___N_std_S_allocator__S0_ Libraries; + internal global::Std.Vector.__Internal Diagnostics; + internal global::Std.Vector.__Internal Libraries; internal __IntPtr targetInfo; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser12ParserResultC2Ev", CallingConvention = __CallingConvention.Cdecl)] @@ -40499,7 +40993,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.ParserResult managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.ParserResult managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -40512,11 +41018,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ParserResult)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -40536,7 +41042,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ParserResult(void* native, bool skipVTables = false) @@ -40550,7 +41056,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.ParserResult.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -40558,7 +41064,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.ParserResult.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -40700,7 +41206,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.ClangParser managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.ClangParser managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -40713,11 +41231,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ClangParser)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -40737,7 +41255,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ClangParser(void* native, bool skipVTables = false) @@ -40751,14 +41269,14 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.ClangParser.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } public ClangParser(global::CppSharp.Parser.ClangParser _0) { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.ClangParser.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.ClangParser.__Internal*) __Instance) = *((global::CppSharp.Parser.ClangParser.__Internal*) _0.__Instance); } @@ -40839,13 +41357,35 @@ namespace CppSharp namespace Std { - namespace pair + namespace RbTree + { + namespace RbTreeImpl + { + [StructLayout(LayoutKind.Sequential, Size = 48)] + public unsafe partial struct __Internalc__N_std_S__Rb_tree____N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C___N_std_S_pair__1S0_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S__Select1st__S3____N_std_S_less__S0____N_std_S_allocator__S3__S__Rb_tree_impl__S7__Vb1 + { + internal global::Std.Less.__Internal _M_key_compare; + internal global::Std.RbTreeNodeBase.__Internal _M_header; + internal ulong _M_node_count; + } + } + + [StructLayout(LayoutKind.Sequential, Size = 48)] + public unsafe partial struct __Internalc__N_std_S__Rb_tree____N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C___N_std_S_pair__1S0_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S__Select1st__S3____N_std_S_less__S0____N_std_S_allocator__S3_ + { + internal global::Std.RbTree.RbTreeImpl.__Internalc__N_std_S__Rb_tree____N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C___N_std_S_pair__1S0_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S__Select1st__S3____N_std_S_less__S0____N_std_S_allocator__S3__S__Rb_tree_impl__S7__Vb1 _M_impl; + } + } + +} +namespace Std +{ + namespace Map { - [StructLayout(LayoutKind.Sequential, Size = 40)] - public unsafe partial struct __Internalc__N_std_S_pair__1__N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C____N_CppSharp_N_CppParser_N_AST_S_Declaration + [StructLayout(LayoutKind.Sequential, Size = 48)] + public unsafe partial struct __Internalc__N_std_S_map____N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_less__S0____N_std_S_allocator____N_std_S_pair__1S0__S3_ { - internal global::Std.BasicString.__Internalc__N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C first; - internal __IntPtr second; + internal global::Std.RbTree.__Internalc__N_std_S__Rb_tree____N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C___N_std_S_pair__1S0_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S__Select1st__S3____N_std_S_less__S0____N_std_S_allocator__S3_ _M_t; } } } diff --git a/src/CppParser/Bindings/CSharp/x86_64-linux-gnu-cxx11abi/Std.cs b/src/CppParser/Bindings/CSharp/x86_64-linux-gnu-cxx11abi/Std.cs index a457802a..cba538ac 100644 --- a/src/CppParser/Bindings/CSharp/x86_64-linux-gnu-cxx11abi/Std.cs +++ b/src/CppParser/Bindings/CSharp/x86_64-linux-gnu-cxx11abi/Std.cs @@ -34,7 +34,19 @@ namespace Std { public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary> NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary>(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary> NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary>(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::Std.Allocator<_Tp> managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::Std.Allocator<_Tp> managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -47,11 +59,11 @@ namespace Std { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Allocator<_Tp>)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -71,7 +83,7 @@ namespace Std : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Allocator(void* native, bool skipVTables = false) @@ -88,7 +100,7 @@ namespace Std { __Instance = Marshal.AllocHGlobal(sizeof(global::Std.Allocator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); global::Std.Allocator.__Internal.ctorc__N_std_S_allocator__C(__Instance); return; } @@ -130,241 +142,7 @@ namespace Std namespace Vector { [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_BlockContentComment___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Namespace___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Enumeration___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Function___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Class___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Template___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TypedefDecl___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TypeAlias___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Variable___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Friend___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_BaseClassSpecifier___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Field___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Method___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Parameter___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_FunctionTemplateSpecialization___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_TemplateArgument___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_AccessSpecifierDecl___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_VFTableInfo___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_VTableComponent___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_LayoutField___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_LayoutBase___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Enumeration_S_Item___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector____N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_ClassTemplateSpecialization___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_ExpressionObsolete___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_VarTemplateSpecialization___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_MacroDefinition___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TranslationUnit___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Stmt___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Expr___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_InlineContentComment___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_BlockCommandComment_S_Argument___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector__i___N_std_S_allocator__i - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_VerbatimBlockLineComment___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_InlineCommandComment_S_Argument___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_HTMLStartTagComment_S_Attribute___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector____N_CppSharp_N_CppParser_S_ParserDiagnostic___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_NativeLibrary___N_std_S_allocator__S0_ + public unsafe partial struct __Internal { internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; } @@ -373,241 +151,7 @@ namespace Std namespace VectorBase { [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base_____N_CppSharp_N_CppParser_N_AST_S_BlockContentComment___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base_____N_CppSharp_N_CppParser_N_AST_S_Template___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base_____N_CppSharp_N_CppParser_N_AST_S_TypedefDecl___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base_____N_CppSharp_N_CppParser_N_AST_S_TypeAlias___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base_____N_CppSharp_N_CppParser_N_AST_S_Variable___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base_____N_CppSharp_N_CppParser_N_AST_S_Friend___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base_____N_CppSharp_N_CppParser_N_AST_S_BaseClassSpecifier___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base_____N_CppSharp_N_CppParser_N_AST_S_Field___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base_____N_CppSharp_N_CppParser_N_AST_S_Parameter___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base_____N_CppSharp_N_CppParser_N_AST_S_FunctionTemplateSpecialization___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base____N_CppSharp_N_CppParser_N_AST_S_TemplateArgument___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base_____N_CppSharp_N_CppParser_N_AST_S_Method___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base_____N_CppSharp_N_CppParser_N_AST_S_AccessSpecifierDecl___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base____N_CppSharp_N_CppParser_N_AST_S_VTableComponent___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base____N_CppSharp_N_CppParser_N_AST_S_VFTableInfo___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base____N_CppSharp_N_CppParser_N_AST_S_LayoutField___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base____N_CppSharp_N_CppParser_N_AST_S_LayoutBase___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base_____N_CppSharp_N_CppParser_N_AST_S_Class___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base_____N_CppSharp_N_CppParser_N_AST_S_Function___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base_____N_CppSharp_N_CppParser_N_AST_S_Enumeration_S_Item___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base_____N_CppSharp_N_CppParser_N_AST_S_Enumeration___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base_____N_CppSharp_N_CppParser_N_AST_S_Namespace___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base____N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base_____N_CppSharp_N_CppParser_N_AST_S_ClassTemplateSpecialization___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base_____N_CppSharp_N_CppParser_N_AST_S_ExpressionObsolete___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base_____N_CppSharp_N_CppParser_N_AST_S_VarTemplateSpecialization___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base_____N_CppSharp_N_CppParser_N_AST_S_MacroDefinition___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base_____N_CppSharp_N_CppParser_N_AST_S_TranslationUnit___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base_____N_CppSharp_N_CppParser_N_AST_S_Stmt___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base_____N_CppSharp_N_CppParser_N_AST_S_Expr___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base_____N_CppSharp_N_CppParser_N_AST_S_InlineContentComment___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base____N_CppSharp_N_CppParser_N_AST_S_BlockCommandComment_S_Argument___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base__i___N_std_S_allocator__i - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base_____N_CppSharp_N_CppParser_N_AST_S_VerbatimBlockLineComment___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base____N_CppSharp_N_CppParser_N_AST_S_InlineCommandComment_S_Argument___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base____N_CppSharp_N_CppParser_N_AST_S_HTMLStartTagComment_S_Attribute___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base____N_CppSharp_N_CppParser_S_ParserDiagnostic___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base_____N_CppSharp_N_CppParser_N_AST_S_NativeLibrary___N_std_S_allocator__S0_ + public unsafe partial struct __Internal { internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; } @@ -655,26 +199,6 @@ namespace Std { } - namespace RbTree - { - namespace RbTreeImpl - { - [StructLayout(LayoutKind.Sequential, Size = 48)] - public unsafe partial struct __Internal - { - internal global::Std.Less.__Internal _M_key_compare; - internal global::Std.RbTreeNodeBase.__Internal _M_header; - internal ulong _M_node_count; - } - } - - [StructLayout(LayoutKind.Sequential, Size = 48)] - public unsafe partial struct __Internalc__N_std_S__Rb_tree____N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C___N_std_S_pair__1S0_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S__Select1st__S3____N_std_S_less__S0____N_std_S_allocator__S3_ - { - internal global::Std.RbTree.RbTreeImpl.__Internal _M_impl; - } - } - public unsafe partial class RbTreeNodeBase { [StructLayout(LayoutKind.Sequential, Size = 32)] @@ -694,14 +218,6 @@ namespace GnuCxx namespace Std { - namespace Map - { - [StructLayout(LayoutKind.Sequential, Size = 48)] - public unsafe partial struct __Internalc__N_std_S_map____N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_less__S0____N_std_S_allocator____N_std_S_pair__1S0__S3_ - { - internal global::Std.RbTree.__Internalc__N_std_S__Rb_tree____N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C___N_std_S_pair__1S0_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S__Select1st__S3____N_std_S_less__S0____N_std_S_allocator__S3_ _M_t; - } - } } namespace Std @@ -722,7 +238,19 @@ namespace Std { public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary> NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary>(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary> NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary>(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::Std.CharTraits<_CharT> managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::Std.CharTraits<_CharT> managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -735,11 +263,11 @@ namespace Std { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CharTraits<_CharT>)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -759,7 +287,7 @@ namespace Std : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CharTraits(void* native, bool skipVTables = false) @@ -828,7 +356,7 @@ namespace Std namespace _0 { [StructLayout(LayoutKind.Explicit, Size = 16)] - public unsafe partial struct __Internalc__N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C + public unsafe partial struct __Internal { [FieldOffset(0)] internal fixed sbyte _M_local_buf[16]; @@ -844,7 +372,19 @@ namespace Std { public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary> NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary>(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary> NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary>(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::Std.BasicString<_CharT, _Traits, _Alloc> managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::Std.BasicString<_CharT, _Traits, _Alloc> managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -857,11 +397,11 @@ namespace Std { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (BasicString<_CharT, _Traits, _Alloc>)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -881,7 +421,7 @@ namespace Std : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected BasicString(void* native, bool skipVTables = false) @@ -900,7 +440,7 @@ namespace Std { __Instance = Marshal.AllocHGlobal(sizeof(global::Std.BasicString.__Internalc__N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); global::Std.BasicString.__Internalc__N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C.ctorc__N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C(__Instance); return; } @@ -969,7 +509,3 @@ namespace Std namespace Std { } - -namespace Std -{ -} diff --git a/src/CppParser/Bindings/CSharp/x86_64-linux-gnu/CppSharp.CppParser.cs b/src/CppParser/Bindings/CSharp/x86_64-linux-gnu/CppSharp.CppParser.cs index aea54d9d..612f1f20 100644 --- a/src/CppParser/Bindings/CSharp/x86_64-linux-gnu/CppSharp.CppParser.cs +++ b/src/CppParser/Bindings/CSharp/x86_64-linux-gnu/CppSharp.CppParser.cs @@ -62,10 +62,10 @@ namespace CppSharp [StructLayout(LayoutKind.Sequential, Size = 64)] public partial struct __Internal { - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C fileName; + internal global::Std.BasicString.__Internal fileName; internal global::CppSharp.Parser.AST.ArchType archType; - internal global::Std.Vector.__Internalc__N_std_S_vector____N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C___N_std_S_allocator__S0_ Symbols; - internal global::Std.Vector.__Internalc__N_std_S_vector____N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C___N_std_S_allocator__S0_ Dependencies; + internal global::Std.Vector.__Internal Symbols; + internal global::Std.Vector.__Internal Dependencies; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST13NativeLibraryC2Ev", CallingConvention = __CallingConvention.Cdecl)] internal static extern void ctor(__IntPtr __instance); @@ -103,7 +103,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.NativeLibrary managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.NativeLibrary managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -116,11 +128,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (NativeLibrary)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -140,7 +152,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected NativeLibrary(void* native, bool skipVTables = false) @@ -154,7 +166,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.NativeLibrary.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -162,7 +174,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.NativeLibrary.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -283,7 +295,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.Comment managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.Comment managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -296,11 +320,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Comment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -320,7 +344,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Comment(void* native, bool skipVTables = false) @@ -334,7 +358,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Comment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, kind); } @@ -342,7 +366,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Comment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.Comment.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.Comment.__Internal*) _0.__Instance); } @@ -409,11 +433,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (BlockContentComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -433,7 +457,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected BlockContentComment(void* native, bool skipVTables = false) @@ -446,7 +470,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BlockContentComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -455,7 +479,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BlockContentComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, Kind); } @@ -464,7 +488,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BlockContentComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.BlockContentComment.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.BlockContentComment.__Internal*) _0.__Instance); } @@ -480,7 +504,7 @@ namespace CppSharp public new partial struct __Internal { internal global::CppSharp.Parser.AST.CommentKind kind; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_BlockContentComment___N_std_S_allocator__S0_ Blocks; + internal global::Std.Vector.__Internal Blocks; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST11FullCommentC2Ev", CallingConvention = __CallingConvention.Cdecl)] internal static extern void ctor(__IntPtr __instance); @@ -513,11 +537,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (FullComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -537,7 +561,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected FullComment(void* native, bool skipVTables = false) @@ -550,7 +574,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FullComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -559,7 +583,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FullComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -639,11 +663,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (InlineContentComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -663,7 +687,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected InlineContentComment(void* native, bool skipVTables = false) @@ -676,7 +700,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.InlineContentComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -685,7 +709,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.InlineContentComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, Kind); } @@ -694,7 +718,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.InlineContentComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.InlineContentComment.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.InlineContentComment.__Internal*) _0.__Instance); } @@ -724,7 +748,7 @@ namespace CppSharp { internal global::CppSharp.Parser.AST.CommentKind kind; internal byte isWhitespace; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_InlineContentComment___N_std_S_allocator__S0_ Content; + internal global::Std.Vector.__Internal Content; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST16ParagraphCommentC2Ev", CallingConvention = __CallingConvention.Cdecl)] internal static extern void ctor(__IntPtr __instance); @@ -757,11 +781,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ParagraphComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -781,7 +805,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ParagraphComment(void* native, bool skipVTables = false) @@ -794,7 +818,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ParagraphComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -803,7 +827,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ParagraphComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -877,7 +901,7 @@ namespace CppSharp internal global::CppSharp.Parser.AST.CommentKind kind; internal uint commandId; internal __IntPtr paragraphComment; - internal global::Std.Vector.__Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_BlockCommandComment_S_Argument___N_std_S_allocator__S0_ Arguments; + internal global::Std.Vector.__Internal Arguments; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST19BlockCommandCommentC2Ev", CallingConvention = __CallingConvention.Cdecl)] internal static extern void ctor(__IntPtr __instance); @@ -909,7 +933,7 @@ namespace CppSharp [StructLayout(LayoutKind.Sequential, Size = 8)] public partial struct __Internal { - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C text; + internal global::Std.BasicString.__Internal text; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST19BlockCommandComment8ArgumentC2Ev", CallingConvention = __CallingConvention.Cdecl)] internal static extern void ctor(__IntPtr __instance); @@ -923,7 +947,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.BlockCommandComment.Argument managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.BlockCommandComment.Argument managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -936,11 +972,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Argument)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -960,7 +996,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Argument(void* native, bool skipVTables = false) @@ -974,7 +1010,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BlockCommandComment.Argument.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -982,7 +1018,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BlockCommandComment.Argument.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -1033,11 +1069,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (BlockCommandComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -1057,7 +1093,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected BlockCommandComment(void* native, bool skipVTables = false) @@ -1070,7 +1106,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BlockCommandComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -1079,7 +1115,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BlockCommandComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, Kind); } @@ -1088,7 +1124,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BlockCommandComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -1182,7 +1218,7 @@ namespace CppSharp internal global::CppSharp.Parser.AST.CommentKind kind; internal uint commandId; internal __IntPtr paragraphComment; - internal global::Std.Vector.__Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_BlockCommandComment_S_Argument___N_std_S_allocator__S0_ Arguments; + internal global::Std.Vector.__Internal Arguments; internal global::CppSharp.Parser.AST.ParamCommandComment.PassDirection direction; internal uint paramIndex; @@ -1212,11 +1248,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ParamCommandComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -1236,7 +1272,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ParamCommandComment(void* native, bool skipVTables = false) @@ -1249,7 +1285,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ParamCommandComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -1258,7 +1294,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ParamCommandComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -1315,8 +1351,8 @@ namespace CppSharp internal global::CppSharp.Parser.AST.CommentKind kind; internal uint commandId; internal __IntPtr paragraphComment; - internal global::Std.Vector.__Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_BlockCommandComment_S_Argument___N_std_S_allocator__S0_ Arguments; - internal global::Std.Vector.__Internalc__N_std_S_vector__i___N_std_S_allocator__i Position; + internal global::Std.Vector.__Internal Arguments; + internal global::Std.Vector.__Internal Position; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST20TParamCommandCommentC2Ev", CallingConvention = __CallingConvention.Cdecl)] internal static extern void ctor(__IntPtr __instance); @@ -1349,11 +1385,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TParamCommandComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -1373,7 +1409,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TParamCommandComment(void* native, bool skipVTables = false) @@ -1386,7 +1422,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TParamCommandComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -1395,7 +1431,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TParamCommandComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -1453,7 +1489,7 @@ namespace CppSharp public new partial struct __Internal { internal global::CppSharp.Parser.AST.CommentKind kind; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C text; + internal global::Std.BasicString.__Internal text; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST24VerbatimBlockLineCommentC2Ev", CallingConvention = __CallingConvention.Cdecl)] internal static extern void ctor(__IntPtr __instance); @@ -1474,11 +1510,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (VerbatimBlockLineComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -1498,7 +1534,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected VerbatimBlockLineComment(void* native, bool skipVTables = false) @@ -1511,7 +1547,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VerbatimBlockLineComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -1520,7 +1556,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VerbatimBlockLineComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -1565,8 +1601,8 @@ namespace CppSharp internal global::CppSharp.Parser.AST.CommentKind kind; internal uint commandId; internal __IntPtr paragraphComment; - internal global::Std.Vector.__Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_BlockCommandComment_S_Argument___N_std_S_allocator__S0_ Arguments; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_VerbatimBlockLineComment___N_std_S_allocator__S0_ Lines; + internal global::Std.Vector.__Internal Arguments; + internal global::Std.Vector.__Internal Lines; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST20VerbatimBlockCommentC2Ev", CallingConvention = __CallingConvention.Cdecl)] internal static extern void ctor(__IntPtr __instance); @@ -1599,11 +1635,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (VerbatimBlockComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -1623,7 +1659,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected VerbatimBlockComment(void* native, bool skipVTables = false) @@ -1636,7 +1672,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VerbatimBlockComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -1645,7 +1681,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VerbatimBlockComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -1706,8 +1742,8 @@ namespace CppSharp internal global::CppSharp.Parser.AST.CommentKind kind; internal uint commandId; internal __IntPtr paragraphComment; - internal global::Std.Vector.__Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_BlockCommandComment_S_Argument___N_std_S_allocator__S0_ Arguments; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C text; + internal global::Std.Vector.__Internal Arguments; + internal global::Std.BasicString.__Internal text; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST19VerbatimLineCommentC2Ev", CallingConvention = __CallingConvention.Cdecl)] internal static extern void ctor(__IntPtr __instance); @@ -1728,11 +1764,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (VerbatimLineComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -1752,7 +1788,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected VerbatimLineComment(void* native, bool skipVTables = false) @@ -1765,7 +1801,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VerbatimLineComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -1774,7 +1810,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VerbatimLineComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -1820,7 +1856,7 @@ namespace CppSharp internal byte hasTrailingNewline; internal uint commandId; internal global::CppSharp.Parser.AST.InlineCommandComment.RenderKind commentRenderKind; - internal global::Std.Vector.__Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_InlineCommandComment_S_Argument___N_std_S_allocator__S0_ Arguments; + internal global::Std.Vector.__Internal Arguments; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST20InlineCommandCommentC2Ev", CallingConvention = __CallingConvention.Cdecl)] internal static extern void ctor(__IntPtr __instance); @@ -1858,7 +1894,7 @@ namespace CppSharp [StructLayout(LayoutKind.Sequential, Size = 8)] public partial struct __Internal { - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C text; + internal global::Std.BasicString.__Internal text; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST20InlineCommandComment8ArgumentC2Ev", CallingConvention = __CallingConvention.Cdecl)] internal static extern void ctor(__IntPtr __instance); @@ -1872,7 +1908,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.InlineCommandComment.Argument managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.InlineCommandComment.Argument managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -1885,11 +1933,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Argument)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -1909,7 +1957,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Argument(void* native, bool skipVTables = false) @@ -1923,7 +1971,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.InlineCommandComment.Argument.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -1931,7 +1979,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.InlineCommandComment.Argument.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -1982,11 +2030,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (InlineCommandComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -2006,7 +2054,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected InlineCommandComment(void* native, bool skipVTables = false) @@ -2019,7 +2067,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.InlineCommandComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -2028,7 +2076,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.InlineCommandComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -2135,11 +2183,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (HTMLTagComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -2159,7 +2207,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected HTMLTagComment(void* native, bool skipVTables = false) @@ -2172,7 +2220,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.HTMLTagComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -2181,7 +2229,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.HTMLTagComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, Kind); } @@ -2190,7 +2238,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.HTMLTagComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.HTMLTagComment.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.HTMLTagComment.__Internal*) _0.__Instance); } @@ -2207,8 +2255,8 @@ namespace CppSharp { internal global::CppSharp.Parser.AST.CommentKind kind; internal byte hasTrailingNewline; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C tagName; - internal global::Std.Vector.__Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_HTMLStartTagComment_S_Attribute___N_std_S_allocator__S0_ Attributes; + internal global::Std.BasicString.__Internal tagName; + internal global::Std.Vector.__Internal Attributes; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST19HTMLStartTagCommentC2Ev", CallingConvention = __CallingConvention.Cdecl)] internal static extern void ctor(__IntPtr __instance); @@ -2237,8 +2285,8 @@ namespace CppSharp [StructLayout(LayoutKind.Sequential, Size = 16)] public partial struct __Internal { - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C name; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C value; + internal global::Std.BasicString.__Internal name; + internal global::Std.BasicString.__Internal value; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST19HTMLStartTagComment9AttributeC2Ev", CallingConvention = __CallingConvention.Cdecl)] internal static extern void ctor(__IntPtr __instance); @@ -2252,7 +2300,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -2265,11 +2325,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Attribute)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -2289,7 +2349,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Attribute(void* native, bool skipVTables = false) @@ -2303,7 +2363,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -2311,7 +2371,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -2376,11 +2436,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (HTMLStartTagComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -2400,7 +2460,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected HTMLStartTagComment(void* native, bool skipVTables = false) @@ -2413,7 +2473,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.HTMLStartTagComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -2422,7 +2482,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.HTMLStartTagComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -2497,7 +2557,7 @@ namespace CppSharp { internal global::CppSharp.Parser.AST.CommentKind kind; internal byte hasTrailingNewline; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C tagName; + internal global::Std.BasicString.__Internal tagName; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST17HTMLEndTagCommentC2Ev", CallingConvention = __CallingConvention.Cdecl)] internal static extern void ctor(__IntPtr __instance); @@ -2518,11 +2578,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (HTMLEndTagComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -2542,7 +2602,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected HTMLEndTagComment(void* native, bool skipVTables = false) @@ -2555,7 +2615,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.HTMLEndTagComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -2564,7 +2624,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.HTMLEndTagComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -2608,7 +2668,7 @@ namespace CppSharp { internal global::CppSharp.Parser.AST.CommentKind kind; internal byte hasTrailingNewline; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C text; + internal global::Std.BasicString.__Internal text; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST11TextCommentC2Ev", CallingConvention = __CallingConvention.Cdecl)] internal static extern void ctor(__IntPtr __instance); @@ -2629,11 +2689,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TextComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -2653,7 +2713,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TextComment(void* native, bool skipVTables = false) @@ -2666,7 +2726,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TextComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -2675,7 +2735,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TextComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -2718,8 +2778,8 @@ namespace CppSharp public partial struct __Internal { internal global::CppSharp.Parser.AST.RawCommentKind kind; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C text; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C briefText; + internal global::Std.BasicString.__Internal text; + internal global::Std.BasicString.__Internal briefText; internal __IntPtr fullCommentBlock; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST10RawCommentC2Ev", CallingConvention = __CallingConvention.Cdecl)] @@ -2734,7 +2794,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.RawComment managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.RawComment managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -2747,11 +2819,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (RawComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -2771,7 +2843,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected RawComment(void* native, bool skipVTables = false) @@ -2785,7 +2857,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.RawComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -2793,7 +2865,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.RawComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -2901,7 +2973,7 @@ namespace CppSharp } private SourceLocation.__Internal __instance; - internal SourceLocation.__Internal __Instance { get { return __instance; } } + internal SourceLocation.__Internal __Instance => __instance; internal static SourceLocation __CreateInstance(__IntPtr native, bool skipVTables = false) { @@ -2980,7 +3052,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.SourceRange managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.SourceRange managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -2993,11 +3077,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (SourceRange)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -3017,7 +3101,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected SourceRange(void* native, bool skipVTables = false) @@ -3031,7 +3115,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.SourceRange.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.SourceRange.__Internal*) __Instance) = *((global::CppSharp.Parser.SourceRange.__Internal*) _0.__Instance); } @@ -3039,7 +3123,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.SourceRange.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -3190,7 +3274,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.Type managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.Type managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -3203,11 +3299,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Type)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -3227,7 +3323,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Type(void* native, bool skipVTables = false) @@ -3241,7 +3337,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Type.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, kind); } @@ -3249,7 +3345,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Type.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -3321,7 +3417,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.TypeQualifiers managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.TypeQualifiers managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -3334,11 +3442,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TypeQualifiers)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -3358,7 +3466,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TypeQualifiers(void* native, bool skipVTables = false) @@ -3372,7 +3480,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypeQualifiers.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.TypeQualifiers.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.TypeQualifiers.__Internal*) _0.__Instance); } @@ -3380,7 +3488,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypeQualifiers.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } public void Dispose() @@ -3458,7 +3566,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.QualifiedType managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.QualifiedType managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -3471,11 +3591,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (QualifiedType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -3495,7 +3615,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected QualifiedType(void* native, bool skipVTables = false) @@ -3509,7 +3629,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.QualifiedType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -3517,7 +3637,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.QualifiedType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.QualifiedType.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.QualifiedType.__Internal*) _0.__Instance); } @@ -3594,11 +3714,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TagType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -3618,7 +3738,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TagType(void* native, bool skipVTables = false) @@ -3631,7 +3751,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TagType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -3640,7 +3760,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TagType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -3698,11 +3818,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ArrayType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -3722,7 +3842,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ArrayType(void* native, bool skipVTables = false) @@ -3735,7 +3855,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ArrayType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -3744,7 +3864,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ArrayType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -3816,7 +3936,7 @@ namespace CppSharp internal global::CppSharp.Parser.AST.QualifiedType.__Internal returnType; internal global::CppSharp.Parser.AST.CallingConvention callingConvention; internal global::CppSharp.Parser.AST.ExceptionSpecType exceptionSpecType; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Parameter___N_std_S_allocator__S0_ Parameters; + internal global::Std.Vector.__Internal Parameters; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST12FunctionTypeC2Ev", CallingConvention = __CallingConvention.Cdecl)] internal static extern void ctor(__IntPtr __instance); @@ -3849,11 +3969,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (FunctionType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -3873,7 +3993,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected FunctionType(void* native, bool skipVTables = false) @@ -3886,7 +4006,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FunctionType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -3895,7 +4015,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FunctionType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -4023,11 +4143,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (PointerType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -4047,7 +4167,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected PointerType(void* native, bool skipVTables = false) @@ -4060,7 +4180,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PointerType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -4069,7 +4189,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PointerType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -4130,11 +4250,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (MemberPointerType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -4154,7 +4274,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected MemberPointerType(void* native, bool skipVTables = false) @@ -4167,7 +4287,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MemberPointerType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -4176,7 +4296,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MemberPointerType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -4224,11 +4344,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TypedefType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -4248,7 +4368,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TypedefType(void* native, bool skipVTables = false) @@ -4261,7 +4381,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypedefType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -4270,7 +4390,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypedefType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -4318,11 +4438,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (AttributedType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -4342,7 +4462,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected AttributedType(void* native, bool skipVTables = false) @@ -4355,7 +4475,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AttributedType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -4364,7 +4484,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AttributedType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -4429,11 +4549,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DecayedType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -4453,7 +4573,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DecayedType(void* native, bool skipVTables = false) @@ -4466,7 +4586,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DecayedType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -4475,7 +4595,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DecayedType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -4559,7 +4679,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.TemplateArgument managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.TemplateArgument managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -4572,11 +4704,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TemplateArgument)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -4596,7 +4728,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TemplateArgument(void* native, bool skipVTables = false) @@ -4610,7 +4742,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateArgument.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -4618,7 +4750,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateArgument.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.TemplateArgument.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.TemplateArgument.__Internal*) _0.__Instance); } @@ -4703,7 +4835,7 @@ namespace CppSharp { internal global::CppSharp.Parser.AST.TypeKind kind; internal byte isDependent; - internal global::Std.Vector.__Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_TemplateArgument___N_std_S_allocator__S0_ Arguments; + internal global::Std.Vector.__Internal Arguments; internal __IntPtr _template; internal global::CppSharp.Parser.AST.QualifiedType.__Internal desugared; @@ -4738,11 +4870,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TemplateSpecializationType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -4762,7 +4894,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TemplateSpecializationType(void* native, bool skipVTables = false) @@ -4775,7 +4907,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateSpecializationType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -4784,7 +4916,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateSpecializationType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -4872,7 +5004,7 @@ namespace CppSharp { internal global::CppSharp.Parser.AST.TypeKind kind; internal byte isDependent; - internal global::Std.Vector.__Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_TemplateArgument___N_std_S_allocator__S0_ Arguments; + internal global::Std.Vector.__Internal Arguments; internal global::CppSharp.Parser.AST.QualifiedType.__Internal desugared; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST35DependentTemplateSpecializationTypeC2Ev", CallingConvention = __CallingConvention.Cdecl)] @@ -4906,11 +5038,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DependentTemplateSpecializationType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -4930,7 +5062,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DependentTemplateSpecializationType(void* native, bool skipVTables = false) @@ -4943,7 +5075,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DependentTemplateSpecializationType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -4952,7 +5084,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DependentTemplateSpecializationType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -5050,11 +5182,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TemplateParameterType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -5074,7 +5206,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TemplateParameterType(void* native, bool skipVTables = false) @@ -5087,7 +5219,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateParameterType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -5096,7 +5228,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateParameterType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -5198,11 +5330,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TemplateParameterSubstitutionType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -5222,7 +5354,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TemplateParameterSubstitutionType(void* native, bool skipVTables = false) @@ -5235,7 +5367,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateParameterSubstitutionType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -5244,7 +5376,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateParameterSubstitutionType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -5307,11 +5439,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (InjectedClassNameType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -5331,7 +5463,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected InjectedClassNameType(void* native, bool skipVTables = false) @@ -5344,7 +5476,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.InjectedClassNameType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -5353,7 +5485,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.InjectedClassNameType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -5398,7 +5530,7 @@ namespace CppSharp internal global::CppSharp.Parser.AST.TypeKind kind; internal byte isDependent; internal global::CppSharp.Parser.AST.QualifiedType.__Internal qualifier; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C identifier; + internal global::Std.BasicString.__Internal identifier; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST17DependentNameTypeC2Ev", CallingConvention = __CallingConvention.Cdecl)] internal static extern void ctor(__IntPtr __instance); @@ -5419,11 +5551,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DependentNameType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -5443,7 +5575,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DependentNameType(void* native, bool skipVTables = false) @@ -5456,7 +5588,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DependentNameType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -5465,7 +5597,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DependentNameType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -5541,11 +5673,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (PackExpansionType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -5565,7 +5697,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected PackExpansionType(void* native, bool skipVTables = false) @@ -5578,7 +5710,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PackExpansionType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -5587,7 +5719,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PackExpansionType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -5621,11 +5753,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (UnaryTransformType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -5645,7 +5777,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected UnaryTransformType(void* native, bool skipVTables = false) @@ -5658,7 +5790,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnaryTransformType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -5667,7 +5799,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnaryTransformType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -5730,11 +5862,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (UnresolvedUsingType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -5754,7 +5886,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected UnresolvedUsingType(void* native, bool skipVTables = false) @@ -5767,7 +5899,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnresolvedUsingType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -5776,7 +5908,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnresolvedUsingType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -5824,11 +5956,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (VectorType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -5848,7 +5980,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected VectorType(void* native, bool skipVTables = false) @@ -5861,7 +5993,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VectorType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -5870,7 +6002,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VectorType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -5931,11 +6063,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (BuiltinType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -5955,7 +6087,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected BuiltinType(void* native, bool skipVTables = false) @@ -5968,7 +6100,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BuiltinType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -5977,7 +6109,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BuiltinType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -6216,9 +6348,9 @@ namespace CppSharp internal global::CppSharp.Parser.SourceLocation.__Internal location; internal int lineNumberStart; internal int lineNumberEnd; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C name; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C USR; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C debugText; + internal global::Std.BasicString.__Internal name; + internal global::Std.BasicString.__Internal USR; + internal global::Std.BasicString.__Internal debugText; internal byte isIncomplete; internal byte isDependent; internal byte isImplicit; @@ -6226,8 +6358,8 @@ namespace CppSharp internal byte isDeprecated; internal __IntPtr completeDeclaration; internal uint definitionOrder; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ PreprocessedEntities; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Redeclarations; + internal global::Std.Vector.__Internal PreprocessedEntities; + internal global::Std.Vector.__Internal Redeclarations; internal __IntPtr originalPtr; internal __IntPtr comment; @@ -6267,7 +6399,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.Declaration managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.Declaration managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -6280,11 +6424,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Declaration)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -6304,7 +6448,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Declaration(void* native, bool skipVTables = false) @@ -6318,7 +6462,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Declaration.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, kind); } @@ -6326,7 +6470,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Declaration.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -6698,9 +6842,9 @@ namespace CppSharp internal global::CppSharp.Parser.SourceLocation.__Internal location; internal int lineNumberStart; internal int lineNumberEnd; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C name; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C USR; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C debugText; + internal global::Std.BasicString.__Internal name; + internal global::Std.BasicString.__Internal USR; + internal global::Std.BasicString.__Internal debugText; internal byte isIncomplete; internal byte isDependent; internal byte isImplicit; @@ -6708,19 +6852,19 @@ namespace CppSharp internal byte isDeprecated; internal __IntPtr completeDeclaration; internal uint definitionOrder; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ PreprocessedEntities; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Redeclarations; + internal global::Std.Vector.__Internal PreprocessedEntities; + internal global::Std.Vector.__Internal Redeclarations; internal __IntPtr originalPtr; internal __IntPtr comment; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Namespace___N_std_S_allocator__S0_ Namespaces; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Enumeration___N_std_S_allocator__S0_ Enums; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Function___N_std_S_allocator__S0_ Functions; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Class___N_std_S_allocator__S0_ Classes; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Template___N_std_S_allocator__S0_ Templates; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TypedefDecl___N_std_S_allocator__S0_ Typedefs; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TypeAlias___N_std_S_allocator__S0_ TypeAliases; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Variable___N_std_S_allocator__S0_ Variables; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Friend___N_std_S_allocator__S0_ Friends; + internal global::Std.Vector.__Internal Namespaces; + internal global::Std.Vector.__Internal Enums; + internal global::Std.Vector.__Internal Functions; + internal global::Std.Vector.__Internal Classes; + internal global::Std.Vector.__Internal Templates; + internal global::Std.Vector.__Internal Typedefs; + internal global::Std.Vector.__Internal TypeAliases; + internal global::Std.Vector.__Internal Variables; + internal global::Std.Vector.__Internal Friends; internal global::Std.Map.__Internalc__N_std_S_map____N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_less__S0____N_std_S_allocator____N_std_S_pair__1S0__S3_ anonymous; internal byte isAnonymous; @@ -6851,11 +6995,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DeclarationContext)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -6875,7 +7019,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DeclarationContext(void* native, bool skipVTables = false) @@ -6888,7 +7032,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DeclarationContext.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, kind); } @@ -6897,7 +7041,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DeclarationContext.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -7221,9 +7365,9 @@ namespace CppSharp internal global::CppSharp.Parser.SourceLocation.__Internal location; internal int lineNumberStart; internal int lineNumberEnd; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C name; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C USR; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C debugText; + internal global::Std.BasicString.__Internal name; + internal global::Std.BasicString.__Internal USR; + internal global::Std.BasicString.__Internal debugText; internal byte isIncomplete; internal byte isDependent; internal byte isImplicit; @@ -7231,8 +7375,8 @@ namespace CppSharp internal byte isDeprecated; internal __IntPtr completeDeclaration; internal uint definitionOrder; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ PreprocessedEntities; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Redeclarations; + internal global::Std.Vector.__Internal PreprocessedEntities; + internal global::Std.Vector.__Internal Redeclarations; internal __IntPtr originalPtr; internal __IntPtr comment; internal global::CppSharp.Parser.AST.QualifiedType.__Internal qualifiedType; @@ -7256,11 +7400,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TypedefNameDecl)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -7280,7 +7424,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TypedefNameDecl(void* native, bool skipVTables = false) @@ -7293,7 +7437,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypedefNameDecl.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, kind); } @@ -7302,7 +7446,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypedefNameDecl.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -7358,9 +7502,9 @@ namespace CppSharp internal global::CppSharp.Parser.SourceLocation.__Internal location; internal int lineNumberStart; internal int lineNumberEnd; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C name; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C USR; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C debugText; + internal global::Std.BasicString.__Internal name; + internal global::Std.BasicString.__Internal USR; + internal global::Std.BasicString.__Internal debugText; internal byte isIncomplete; internal byte isDependent; internal byte isImplicit; @@ -7368,8 +7512,8 @@ namespace CppSharp internal byte isDeprecated; internal __IntPtr completeDeclaration; internal uint definitionOrder; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ PreprocessedEntities; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Redeclarations; + internal global::Std.Vector.__Internal PreprocessedEntities; + internal global::Std.Vector.__Internal Redeclarations; internal __IntPtr originalPtr; internal __IntPtr comment; internal global::CppSharp.Parser.AST.QualifiedType.__Internal qualifiedType; @@ -7393,11 +7537,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TypedefDecl)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -7417,7 +7561,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TypedefDecl(void* native, bool skipVTables = false) @@ -7430,7 +7574,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypedefDecl.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -7439,7 +7583,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypedefDecl.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -7475,9 +7619,9 @@ namespace CppSharp internal global::CppSharp.Parser.SourceLocation.__Internal location; internal int lineNumberStart; internal int lineNumberEnd; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C name; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C USR; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C debugText; + internal global::Std.BasicString.__Internal name; + internal global::Std.BasicString.__Internal USR; + internal global::Std.BasicString.__Internal debugText; internal byte isIncomplete; internal byte isDependent; internal byte isImplicit; @@ -7485,8 +7629,8 @@ namespace CppSharp internal byte isDeprecated; internal __IntPtr completeDeclaration; internal uint definitionOrder; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ PreprocessedEntities; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Redeclarations; + internal global::Std.Vector.__Internal PreprocessedEntities; + internal global::Std.Vector.__Internal Redeclarations; internal __IntPtr originalPtr; internal __IntPtr comment; internal global::CppSharp.Parser.AST.QualifiedType.__Internal qualifiedType; @@ -7511,11 +7655,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TypeAlias)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -7535,7 +7679,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TypeAlias(void* native, bool skipVTables = false) @@ -7548,7 +7692,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypeAlias.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -7557,7 +7701,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypeAlias.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -7607,9 +7751,9 @@ namespace CppSharp internal global::CppSharp.Parser.SourceLocation.__Internal location; internal int lineNumberStart; internal int lineNumberEnd; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C name; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C USR; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C debugText; + internal global::Std.BasicString.__Internal name; + internal global::Std.BasicString.__Internal USR; + internal global::Std.BasicString.__Internal debugText; internal byte isIncomplete; internal byte isDependent; internal byte isImplicit; @@ -7617,8 +7761,8 @@ namespace CppSharp internal byte isDeprecated; internal __IntPtr completeDeclaration; internal uint definitionOrder; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ PreprocessedEntities; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Redeclarations; + internal global::Std.Vector.__Internal PreprocessedEntities; + internal global::Std.Vector.__Internal Redeclarations; internal __IntPtr originalPtr; internal __IntPtr comment; internal __IntPtr declaration; @@ -7642,11 +7786,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Friend)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -7666,7 +7810,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Friend(void* native, bool skipVTables = false) @@ -7679,7 +7823,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Friend.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -7688,7 +7832,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Friend.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -7732,7 +7876,7 @@ namespace CppSharp { internal global::CppSharp.Parser.AST.StatementClassObsolete _class; internal __IntPtr decl; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C @string; + internal global::Std.BasicString.__Internal @string; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST17StatementObsoleteC2ERKSsNS1_22StatementClassObsoleteEPNS1_11DeclarationE", CallingConvention = __CallingConvention.Cdecl)] internal static extern void ctor(__IntPtr __instance, __IntPtr str, global::CppSharp.Parser.AST.StatementClassObsolete Class, __IntPtr decl); @@ -7746,7 +7890,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.StatementObsolete managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.StatementObsolete managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -7759,11 +7915,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (StatementObsolete)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -7783,7 +7939,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected StatementObsolete(void* native, bool skipVTables = false) @@ -7797,7 +7953,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.StatementObsolete.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, str); var __arg0 = __basicString0.__Instance; @@ -7810,7 +7966,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.StatementObsolete.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -7886,7 +8042,7 @@ namespace CppSharp { internal global::CppSharp.Parser.AST.StatementClassObsolete _class; internal __IntPtr decl; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C @string; + internal global::Std.BasicString.__Internal @string; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST18ExpressionObsoleteC2ERKSsNS1_22StatementClassObsoleteEPNS1_11DeclarationE", CallingConvention = __CallingConvention.Cdecl)] internal static extern void ctor(__IntPtr __instance, __IntPtr str, global::CppSharp.Parser.AST.StatementClassObsolete Class, __IntPtr decl); @@ -7907,11 +8063,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ExpressionObsolete)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -7931,7 +8087,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ExpressionObsolete(void* native, bool skipVTables = false) @@ -7944,7 +8100,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ExpressionObsolete.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, str); var __arg0 = __basicString0.__Instance; @@ -7958,7 +8114,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ExpressionObsolete.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -7988,10 +8144,10 @@ namespace CppSharp { internal global::CppSharp.Parser.AST.StatementClassObsolete _class; internal __IntPtr decl; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C @string; + internal global::Std.BasicString.__Internal @string; internal __IntPtr LHS; internal __IntPtr RHS; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C opcodeStr; + internal global::Std.BasicString.__Internal opcodeStr; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST22BinaryOperatorObsoleteC2ERKSsPNS1_18ExpressionObsoleteES6_S4_", CallingConvention = __CallingConvention.Cdecl)] internal static extern void ctor(__IntPtr __instance, __IntPtr str, __IntPtr lhs, __IntPtr rhs, __IntPtr opcodeStr); @@ -8012,11 +8168,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (BinaryOperatorObsolete)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -8036,7 +8192,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected BinaryOperatorObsolete(void* native, bool skipVTables = false) @@ -8049,7 +8205,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BinaryOperatorObsolete.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, str); var __arg0 = __basicString0.__Instance; @@ -8068,7 +8224,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BinaryOperatorObsolete.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -8140,8 +8296,8 @@ namespace CppSharp { internal global::CppSharp.Parser.AST.StatementClassObsolete _class; internal __IntPtr decl; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C @string; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_ExpressionObsolete___N_std_S_allocator__S0_ Arguments; + internal global::Std.BasicString.__Internal @string; + internal global::Std.Vector.__Internal Arguments; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST16CallExprObsoleteC2ERKSsPNS1_11DeclarationE", CallingConvention = __CallingConvention.Cdecl)] internal static extern void ctor(__IntPtr __instance, __IntPtr str, __IntPtr decl); @@ -8174,11 +8330,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CallExprObsolete)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -8198,7 +8354,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CallExprObsolete(void* native, bool skipVTables = false) @@ -8211,7 +8367,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CallExprObsolete.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, str); var __arg0 = __basicString0.__Instance; @@ -8225,7 +8381,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CallExprObsolete.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -8285,8 +8441,8 @@ namespace CppSharp { internal global::CppSharp.Parser.AST.StatementClassObsolete _class; internal __IntPtr decl; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C @string; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_ExpressionObsolete___N_std_S_allocator__S0_ Arguments; + internal global::Std.BasicString.__Internal @string; + internal global::Std.Vector.__Internal Arguments; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST24CXXConstructExprObsoleteC2ERKSsPNS1_11DeclarationE", CallingConvention = __CallingConvention.Cdecl)] internal static extern void ctor(__IntPtr __instance, __IntPtr str, __IntPtr decl); @@ -8319,11 +8475,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXConstructExprObsolete)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -8343,7 +8499,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXConstructExprObsolete(void* native, bool skipVTables = false) @@ -8356,7 +8512,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXConstructExprObsolete.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, str); var __arg0 = __basicString0.__Instance; @@ -8370,7 +8526,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXConstructExprObsolete.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -8436,9 +8592,9 @@ namespace CppSharp internal global::CppSharp.Parser.SourceLocation.__Internal location; internal int lineNumberStart; internal int lineNumberEnd; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C name; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C USR; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C debugText; + internal global::Std.BasicString.__Internal name; + internal global::Std.BasicString.__Internal USR; + internal global::Std.BasicString.__Internal debugText; internal byte isIncomplete; internal byte isDependent; internal byte isImplicit; @@ -8446,8 +8602,8 @@ namespace CppSharp internal byte isDeprecated; internal __IntPtr completeDeclaration; internal uint definitionOrder; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ PreprocessedEntities; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Redeclarations; + internal global::Std.Vector.__Internal PreprocessedEntities; + internal global::Std.Vector.__Internal Redeclarations; internal __IntPtr originalPtr; internal __IntPtr comment; internal global::CppSharp.Parser.AST.QualifiedType.__Internal qualifiedType; @@ -8476,11 +8632,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Parameter)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -8500,7 +8656,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Parameter(void* native, bool skipVTables = false) @@ -8513,7 +8669,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Parameter.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -8522,7 +8678,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Parameter.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -8640,9 +8796,9 @@ namespace CppSharp internal global::CppSharp.Parser.SourceLocation.__Internal location; internal int lineNumberStart; internal int lineNumberEnd; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C name; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C USR; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C debugText; + internal global::Std.BasicString.__Internal name; + internal global::Std.BasicString.__Internal USR; + internal global::Std.BasicString.__Internal debugText; internal byte isIncomplete; internal byte isDependent; internal byte isImplicit; @@ -8650,19 +8806,19 @@ namespace CppSharp internal byte isDeprecated; internal __IntPtr completeDeclaration; internal uint definitionOrder; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ PreprocessedEntities; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Redeclarations; + internal global::Std.Vector.__Internal PreprocessedEntities; + internal global::Std.Vector.__Internal Redeclarations; internal __IntPtr originalPtr; internal __IntPtr comment; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Namespace___N_std_S_allocator__S0_ Namespaces; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Enumeration___N_std_S_allocator__S0_ Enums; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Function___N_std_S_allocator__S0_ Functions; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Class___N_std_S_allocator__S0_ Classes; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Template___N_std_S_allocator__S0_ Templates; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TypedefDecl___N_std_S_allocator__S0_ Typedefs; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TypeAlias___N_std_S_allocator__S0_ TypeAliases; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Variable___N_std_S_allocator__S0_ Variables; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Friend___N_std_S_allocator__S0_ Friends; + internal global::Std.Vector.__Internal Namespaces; + internal global::Std.Vector.__Internal Enums; + internal global::Std.Vector.__Internal Functions; + internal global::Std.Vector.__Internal Classes; + internal global::Std.Vector.__Internal Templates; + internal global::Std.Vector.__Internal Typedefs; + internal global::Std.Vector.__Internal TypeAliases; + internal global::Std.Vector.__Internal Variables; + internal global::Std.Vector.__Internal Friends; internal global::Std.Map.__Internalc__N_std_S_map____N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_less__S0____N_std_S_allocator____N_std_S_pair__1S0__S3_ anonymous; internal byte isAnonymous; internal global::CppSharp.Parser.AST.QualifiedType.__Internal returnType; @@ -8676,12 +8832,12 @@ namespace CppSharp internal byte isDefaulted; internal global::CppSharp.Parser.AST.FriendKind friendKind; internal global::CppSharp.Parser.AST.CXXOperatorKind operatorKind; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C mangled; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C signature; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C body; + internal global::Std.BasicString.__Internal mangled; + internal global::Std.BasicString.__Internal signature; + internal global::Std.BasicString.__Internal body; internal __IntPtr bodyStmt; internal global::CppSharp.Parser.AST.CallingConvention callingConvention; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Parameter___N_std_S_allocator__S0_ Parameters; + internal global::Std.Vector.__Internal Parameters; internal __IntPtr specializationInfo; internal __IntPtr instantiatedFrom; internal global::CppSharp.Parser.AST.QualifiedType.__Internal qualifiedType; @@ -8717,11 +8873,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Function)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -8741,7 +8897,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Function(void* native, bool skipVTables = false) @@ -8754,7 +8910,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Function.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -8763,7 +8919,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Function.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -9086,9 +9242,9 @@ namespace CppSharp internal global::CppSharp.Parser.SourceLocation.__Internal location; internal int lineNumberStart; internal int lineNumberEnd; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C name; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C USR; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C debugText; + internal global::Std.BasicString.__Internal name; + internal global::Std.BasicString.__Internal USR; + internal global::Std.BasicString.__Internal debugText; internal byte isIncomplete; internal byte isDependent; internal byte isImplicit; @@ -9096,19 +9252,19 @@ namespace CppSharp internal byte isDeprecated; internal __IntPtr completeDeclaration; internal uint definitionOrder; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ PreprocessedEntities; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Redeclarations; + internal global::Std.Vector.__Internal PreprocessedEntities; + internal global::Std.Vector.__Internal Redeclarations; internal __IntPtr originalPtr; internal __IntPtr comment; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Namespace___N_std_S_allocator__S0_ Namespaces; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Enumeration___N_std_S_allocator__S0_ Enums; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Function___N_std_S_allocator__S0_ Functions; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Class___N_std_S_allocator__S0_ Classes; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Template___N_std_S_allocator__S0_ Templates; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TypedefDecl___N_std_S_allocator__S0_ Typedefs; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TypeAlias___N_std_S_allocator__S0_ TypeAliases; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Variable___N_std_S_allocator__S0_ Variables; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Friend___N_std_S_allocator__S0_ Friends; + internal global::Std.Vector.__Internal Namespaces; + internal global::Std.Vector.__Internal Enums; + internal global::Std.Vector.__Internal Functions; + internal global::Std.Vector.__Internal Classes; + internal global::Std.Vector.__Internal Templates; + internal global::Std.Vector.__Internal Typedefs; + internal global::Std.Vector.__Internal TypeAliases; + internal global::Std.Vector.__Internal Variables; + internal global::Std.Vector.__Internal Friends; internal global::Std.Map.__Internalc__N_std_S_map____N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_less__S0____N_std_S_allocator____N_std_S_pair__1S0__S3_ anonymous; internal byte isAnonymous; internal global::CppSharp.Parser.AST.QualifiedType.__Internal returnType; @@ -9122,12 +9278,12 @@ namespace CppSharp internal byte isDefaulted; internal global::CppSharp.Parser.AST.FriendKind friendKind; internal global::CppSharp.Parser.AST.CXXOperatorKind operatorKind; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C mangled; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C signature; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C body; + internal global::Std.BasicString.__Internal mangled; + internal global::Std.BasicString.__Internal signature; + internal global::Std.BasicString.__Internal body; internal __IntPtr bodyStmt; internal global::CppSharp.Parser.AST.CallingConvention callingConvention; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Parameter___N_std_S_allocator__S0_ Parameters; + internal global::Std.Vector.__Internal Parameters; internal __IntPtr specializationInfo; internal __IntPtr instantiatedFrom; internal global::CppSharp.Parser.AST.QualifiedType.__Internal qualifiedType; @@ -9141,7 +9297,7 @@ namespace CppSharp internal byte isMoveConstructor; internal global::CppSharp.Parser.AST.QualifiedType.__Internal conversionType; internal global::CppSharp.Parser.AST.RefQualifierKind refQualifier; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Method___N_std_S_allocator__S0_ OverriddenMethods; + internal global::Std.Vector.__Internal OverriddenMethods; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST6MethodC2Ev", CallingConvention = __CallingConvention.Cdecl)] internal static extern void ctor(__IntPtr __instance); @@ -9174,11 +9330,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Method)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -9198,7 +9354,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Method(void* native, bool skipVTables = false) @@ -9211,7 +9367,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Method.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -9220,7 +9376,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Method.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -9418,9 +9574,9 @@ namespace CppSharp internal global::CppSharp.Parser.SourceLocation.__Internal location; internal int lineNumberStart; internal int lineNumberEnd; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C name; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C USR; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C debugText; + internal global::Std.BasicString.__Internal name; + internal global::Std.BasicString.__Internal USR; + internal global::Std.BasicString.__Internal debugText; internal byte isIncomplete; internal byte isDependent; internal byte isImplicit; @@ -9428,25 +9584,25 @@ namespace CppSharp internal byte isDeprecated; internal __IntPtr completeDeclaration; internal uint definitionOrder; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ PreprocessedEntities; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Redeclarations; + internal global::Std.Vector.__Internal PreprocessedEntities; + internal global::Std.Vector.__Internal Redeclarations; internal __IntPtr originalPtr; internal __IntPtr comment; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Namespace___N_std_S_allocator__S0_ Namespaces; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Enumeration___N_std_S_allocator__S0_ Enums; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Function___N_std_S_allocator__S0_ Functions; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Class___N_std_S_allocator__S0_ Classes; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Template___N_std_S_allocator__S0_ Templates; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TypedefDecl___N_std_S_allocator__S0_ Typedefs; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TypeAlias___N_std_S_allocator__S0_ TypeAliases; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Variable___N_std_S_allocator__S0_ Variables; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Friend___N_std_S_allocator__S0_ Friends; + internal global::Std.Vector.__Internal Namespaces; + internal global::Std.Vector.__Internal Enums; + internal global::Std.Vector.__Internal Functions; + internal global::Std.Vector.__Internal Classes; + internal global::Std.Vector.__Internal Templates; + internal global::Std.Vector.__Internal Typedefs; + internal global::Std.Vector.__Internal TypeAliases; + internal global::Std.Vector.__Internal Variables; + internal global::Std.Vector.__Internal Friends; internal global::Std.Map.__Internalc__N_std_S_map____N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_less__S0____N_std_S_allocator____N_std_S_pair__1S0__S3_ anonymous; internal byte isAnonymous; internal global::CppSharp.Parser.AST.Enumeration.EnumModifiers modifiers; internal __IntPtr type; internal __IntPtr builtinType; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Enumeration_S_Item___N_std_S_allocator__S0_ Items; + internal global::Std.Vector.__Internal Items; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST11EnumerationC2Ev", CallingConvention = __CallingConvention.Cdecl)] internal static extern void ctor(__IntPtr __instance); @@ -9494,9 +9650,9 @@ namespace CppSharp internal global::CppSharp.Parser.SourceLocation.__Internal location; internal int lineNumberStart; internal int lineNumberEnd; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C name; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C USR; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C debugText; + internal global::Std.BasicString.__Internal name; + internal global::Std.BasicString.__Internal USR; + internal global::Std.BasicString.__Internal debugText; internal byte isIncomplete; internal byte isDependent; internal byte isImplicit; @@ -9504,11 +9660,11 @@ namespace CppSharp internal byte isDeprecated; internal __IntPtr completeDeclaration; internal uint definitionOrder; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ PreprocessedEntities; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Redeclarations; + internal global::Std.Vector.__Internal PreprocessedEntities; + internal global::Std.Vector.__Internal Redeclarations; internal __IntPtr originalPtr; internal __IntPtr comment; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C expression; + internal global::Std.BasicString.__Internal expression; internal ulong value; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST11Enumeration4ItemC2Ev", CallingConvention = __CallingConvention.Cdecl)] @@ -9530,11 +9686,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Item)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -9554,7 +9710,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Item(void* native, bool skipVTables = false) @@ -9567,7 +9723,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Enumeration.Item.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -9576,7 +9732,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Enumeration.Item.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -9635,11 +9791,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Enumeration)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -9659,7 +9815,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Enumeration(void* native, bool skipVTables = false) @@ -9672,7 +9828,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Enumeration.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -9681,7 +9837,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Enumeration.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -9799,9 +9955,9 @@ namespace CppSharp internal global::CppSharp.Parser.SourceLocation.__Internal location; internal int lineNumberStart; internal int lineNumberEnd; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C name; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C USR; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C debugText; + internal global::Std.BasicString.__Internal name; + internal global::Std.BasicString.__Internal USR; + internal global::Std.BasicString.__Internal debugText; internal byte isIncomplete; internal byte isDependent; internal byte isImplicit; @@ -9809,12 +9965,12 @@ namespace CppSharp internal byte isDeprecated; internal __IntPtr completeDeclaration; internal uint definitionOrder; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ PreprocessedEntities; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Redeclarations; + internal global::Std.Vector.__Internal PreprocessedEntities; + internal global::Std.Vector.__Internal Redeclarations; internal __IntPtr originalPtr; internal __IntPtr comment; internal byte isConstExpr; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C mangled; + internal global::Std.BasicString.__Internal mangled; internal global::CppSharp.Parser.AST.QualifiedType.__Internal qualifiedType; internal __IntPtr initializer; @@ -9837,11 +9993,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Variable)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -9861,7 +10017,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Variable(void* native, bool skipVTables = false) @@ -9874,7 +10030,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Variable.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -9883,7 +10039,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Variable.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -9981,7 +10137,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.BaseClassSpecifier managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.BaseClassSpecifier managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -9994,11 +10162,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (BaseClassSpecifier)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -10018,7 +10186,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected BaseClassSpecifier(void* native, bool skipVTables = false) @@ -10032,7 +10200,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BaseClassSpecifier.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -10040,7 +10208,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BaseClassSpecifier.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.BaseClassSpecifier.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.BaseClassSpecifier.__Internal*) _0.__Instance); } @@ -10129,9 +10297,9 @@ namespace CppSharp internal global::CppSharp.Parser.SourceLocation.__Internal location; internal int lineNumberStart; internal int lineNumberEnd; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C name; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C USR; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C debugText; + internal global::Std.BasicString.__Internal name; + internal global::Std.BasicString.__Internal USR; + internal global::Std.BasicString.__Internal debugText; internal byte isIncomplete; internal byte isDependent; internal byte isImplicit; @@ -10139,8 +10307,8 @@ namespace CppSharp internal byte isDeprecated; internal __IntPtr completeDeclaration; internal uint definitionOrder; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ PreprocessedEntities; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Redeclarations; + internal global::Std.Vector.__Internal PreprocessedEntities; + internal global::Std.Vector.__Internal Redeclarations; internal __IntPtr originalPtr; internal __IntPtr comment; internal global::CppSharp.Parser.AST.QualifiedType.__Internal qualifiedType; @@ -10167,11 +10335,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Field)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -10191,7 +10359,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Field(void* native, bool skipVTables = false) @@ -10204,7 +10372,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Field.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -10213,7 +10381,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Field.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -10304,9 +10472,9 @@ namespace CppSharp internal global::CppSharp.Parser.SourceLocation.__Internal location; internal int lineNumberStart; internal int lineNumberEnd; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C name; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C USR; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C debugText; + internal global::Std.BasicString.__Internal name; + internal global::Std.BasicString.__Internal USR; + internal global::Std.BasicString.__Internal debugText; internal byte isIncomplete; internal byte isDependent; internal byte isImplicit; @@ -10314,8 +10482,8 @@ namespace CppSharp internal byte isDeprecated; internal __IntPtr completeDeclaration; internal uint definitionOrder; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ PreprocessedEntities; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Redeclarations; + internal global::Std.Vector.__Internal PreprocessedEntities; + internal global::Std.Vector.__Internal Redeclarations; internal __IntPtr originalPtr; internal __IntPtr comment; @@ -10338,11 +10506,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (AccessSpecifierDecl)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -10362,7 +10530,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected AccessSpecifierDecl(void* native, bool skipVTables = false) @@ -10375,7 +10543,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AccessSpecifierDecl.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -10384,7 +10552,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AccessSpecifierDecl.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -10425,7 +10593,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.VTableComponent managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.VTableComponent managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -10438,11 +10618,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (VTableComponent)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -10462,7 +10642,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected VTableComponent(void* native, bool skipVTables = false) @@ -10476,7 +10656,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VTableComponent.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -10484,7 +10664,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VTableComponent.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.VTableComponent.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.VTableComponent.__Internal*) _0.__Instance); } @@ -10552,7 +10732,7 @@ namespace CppSharp [StructLayout(LayoutKind.Sequential, Size = 24)] public partial struct __Internal { - internal global::Std.Vector.__Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_VTableComponent___N_std_S_allocator__S0_ Components; + internal global::Std.Vector.__Internal Components; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST12VTableLayoutC2Ev", CallingConvention = __CallingConvention.Cdecl)] internal static extern void ctor(__IntPtr __instance); @@ -10578,7 +10758,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.VTableLayout managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.VTableLayout managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -10591,11 +10783,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (VTableLayout)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -10615,7 +10807,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected VTableLayout(void* native, bool skipVTables = false) @@ -10629,7 +10821,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VTableLayout.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -10637,7 +10829,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VTableLayout.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -10715,7 +10907,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.VFTableInfo managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.VFTableInfo managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -10728,11 +10932,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (VFTableInfo)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -10752,7 +10956,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected VFTableInfo(void* native, bool skipVTables = false) @@ -10766,7 +10970,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VFTableInfo.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -10774,7 +10978,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VFTableInfo.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -10862,7 +11066,7 @@ namespace CppSharp public partial struct __Internal { internal uint offset; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C name; + internal global::Std.BasicString.__Internal name; internal global::CppSharp.Parser.AST.QualifiedType.__Internal qualifiedType; internal __IntPtr fieldPtr; @@ -10878,7 +11082,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.LayoutField managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.LayoutField managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -10891,11 +11107,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (LayoutField)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -10915,7 +11131,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected LayoutField(void* native, bool skipVTables = false) @@ -10929,7 +11145,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.LayoutField.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -10937,7 +11153,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.LayoutField.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(other, null)) throw new global::System.ArgumentNullException("other", "Cannot be null because it is a C++ reference (&)."); var __arg0 = other.__Instance; @@ -11040,7 +11256,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.LayoutBase managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.LayoutBase managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -11053,11 +11281,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (LayoutBase)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -11077,7 +11305,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected LayoutBase(void* native, bool skipVTables = false) @@ -11091,7 +11319,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.LayoutBase.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -11099,7 +11327,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.LayoutBase.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(other, null)) throw new global::System.ArgumentNullException("other", "Cannot be null because it is a C++ reference (&)."); var __arg0 = other.__Instance; @@ -11161,15 +11389,15 @@ namespace CppSharp { internal global::CppSharp.Parser.AST.CppAbi ABI; internal global::CppSharp.Parser.AST.RecordArgABI argABI; - internal global::Std.Vector.__Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_VFTableInfo___N_std_S_allocator__S0_ VFTables; + internal global::Std.Vector.__Internal VFTables; internal global::CppSharp.Parser.AST.VTableLayout.__Internal layout; internal byte hasOwnVFPtr; internal long VBPtrOffset; internal int alignment; internal int size; internal int dataSize; - internal global::Std.Vector.__Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_LayoutField___N_std_S_allocator__S0_ Fields; - internal global::Std.Vector.__Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_LayoutBase___N_std_S_allocator__S0_ Bases; + internal global::Std.Vector.__Internal Fields; + internal global::Std.Vector.__Internal Bases; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST11ClassLayoutC2Ev", CallingConvention = __CallingConvention.Cdecl)] internal static extern void ctor(__IntPtr __instance); @@ -11219,7 +11447,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.ClassLayout managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.ClassLayout managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -11232,11 +11472,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ClassLayout)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -11256,7 +11496,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ClassLayout(void* native, bool skipVTables = false) @@ -11270,7 +11510,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ClassLayout.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -11278,7 +11518,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ClassLayout.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -11518,9 +11758,9 @@ namespace CppSharp internal global::CppSharp.Parser.SourceLocation.__Internal location; internal int lineNumberStart; internal int lineNumberEnd; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C name; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C USR; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C debugText; + internal global::Std.BasicString.__Internal name; + internal global::Std.BasicString.__Internal USR; + internal global::Std.BasicString.__Internal debugText; internal byte isIncomplete; internal byte isDependent; internal byte isImplicit; @@ -11528,25 +11768,25 @@ namespace CppSharp internal byte isDeprecated; internal __IntPtr completeDeclaration; internal uint definitionOrder; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ PreprocessedEntities; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Redeclarations; + internal global::Std.Vector.__Internal PreprocessedEntities; + internal global::Std.Vector.__Internal Redeclarations; internal __IntPtr originalPtr; internal __IntPtr comment; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Namespace___N_std_S_allocator__S0_ Namespaces; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Enumeration___N_std_S_allocator__S0_ Enums; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Function___N_std_S_allocator__S0_ Functions; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Class___N_std_S_allocator__S0_ Classes; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Template___N_std_S_allocator__S0_ Templates; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TypedefDecl___N_std_S_allocator__S0_ Typedefs; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TypeAlias___N_std_S_allocator__S0_ TypeAliases; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Variable___N_std_S_allocator__S0_ Variables; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Friend___N_std_S_allocator__S0_ Friends; + internal global::Std.Vector.__Internal Namespaces; + internal global::Std.Vector.__Internal Enums; + internal global::Std.Vector.__Internal Functions; + internal global::Std.Vector.__Internal Classes; + internal global::Std.Vector.__Internal Templates; + internal global::Std.Vector.__Internal Typedefs; + internal global::Std.Vector.__Internal TypeAliases; + internal global::Std.Vector.__Internal Variables; + internal global::Std.Vector.__Internal Friends; internal global::Std.Map.__Internalc__N_std_S_map____N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_less__S0____N_std_S_allocator____N_std_S_pair__1S0__S3_ anonymous; internal byte isAnonymous; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_BaseClassSpecifier___N_std_S_allocator__S0_ Bases; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Field___N_std_S_allocator__S0_ Fields; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Method___N_std_S_allocator__S0_ Methods; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_AccessSpecifierDecl___N_std_S_allocator__S0_ Specifiers; + internal global::Std.Vector.__Internal Bases; + internal global::Std.Vector.__Internal Fields; + internal global::Std.Vector.__Internal Methods; + internal global::Std.Vector.__Internal Specifiers; internal byte isPOD; internal byte isAbstract; internal byte isUnion; @@ -11627,11 +11867,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Class)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -11651,7 +11891,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Class(void* native, bool skipVTables = false) @@ -11664,7 +11904,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Class.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -11673,7 +11913,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Class.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -11986,9 +12226,9 @@ namespace CppSharp internal global::CppSharp.Parser.SourceLocation.__Internal location; internal int lineNumberStart; internal int lineNumberEnd; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C name; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C USR; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C debugText; + internal global::Std.BasicString.__Internal name; + internal global::Std.BasicString.__Internal USR; + internal global::Std.BasicString.__Internal debugText; internal byte isIncomplete; internal byte isDependent; internal byte isImplicit; @@ -11996,12 +12236,12 @@ namespace CppSharp internal byte isDeprecated; internal __IntPtr completeDeclaration; internal uint definitionOrder; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ PreprocessedEntities; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Redeclarations; + internal global::Std.Vector.__Internal PreprocessedEntities; + internal global::Std.Vector.__Internal Redeclarations; internal __IntPtr originalPtr; internal __IntPtr comment; internal __IntPtr TemplatedDecl; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Parameters; + internal global::Std.Vector.__Internal Parameters; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST8TemplateC2ENS1_15DeclarationKindE", CallingConvention = __CallingConvention.Cdecl)] internal static extern void ctor(__IntPtr __instance, global::CppSharp.Parser.AST.DeclarationKind kind); @@ -12037,11 +12277,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Template)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -12061,7 +12301,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Template(void* native, bool skipVTables = false) @@ -12074,7 +12314,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Template.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, kind); } @@ -12083,7 +12323,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Template.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -12092,7 +12332,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Template.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -12177,9 +12417,9 @@ namespace CppSharp internal global::CppSharp.Parser.SourceLocation.__Internal location; internal int lineNumberStart; internal int lineNumberEnd; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C name; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C USR; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C debugText; + internal global::Std.BasicString.__Internal name; + internal global::Std.BasicString.__Internal USR; + internal global::Std.BasicString.__Internal debugText; internal byte isIncomplete; internal byte isDependent; internal byte isImplicit; @@ -12187,12 +12427,12 @@ namespace CppSharp internal byte isDeprecated; internal __IntPtr completeDeclaration; internal uint definitionOrder; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ PreprocessedEntities; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Redeclarations; + internal global::Std.Vector.__Internal PreprocessedEntities; + internal global::Std.Vector.__Internal Redeclarations; internal __IntPtr originalPtr; internal __IntPtr comment; internal __IntPtr TemplatedDecl; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Parameters; + internal global::Std.Vector.__Internal Parameters; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST17TypeAliasTemplateC2Ev", CallingConvention = __CallingConvention.Cdecl)] internal static extern void ctor(__IntPtr __instance); @@ -12213,11 +12453,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TypeAliasTemplate)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -12237,7 +12477,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TypeAliasTemplate(void* native, bool skipVTables = false) @@ -12250,7 +12490,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypeAliasTemplate.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -12259,7 +12499,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypeAliasTemplate.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -12295,9 +12535,9 @@ namespace CppSharp internal global::CppSharp.Parser.SourceLocation.__Internal location; internal int lineNumberStart; internal int lineNumberEnd; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C name; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C USR; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C debugText; + internal global::Std.BasicString.__Internal name; + internal global::Std.BasicString.__Internal USR; + internal global::Std.BasicString.__Internal debugText; internal byte isIncomplete; internal byte isDependent; internal byte isImplicit; @@ -12305,8 +12545,8 @@ namespace CppSharp internal byte isDeprecated; internal __IntPtr completeDeclaration; internal uint definitionOrder; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ PreprocessedEntities; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Redeclarations; + internal global::Std.Vector.__Internal PreprocessedEntities; + internal global::Std.Vector.__Internal Redeclarations; internal __IntPtr originalPtr; internal __IntPtr comment; internal uint depth; @@ -12332,11 +12572,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TemplateParameter)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -12356,7 +12596,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TemplateParameter(void* native, bool skipVTables = false) @@ -12369,7 +12609,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateParameter.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, kind); } @@ -12378,7 +12618,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateParameter.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -12458,9 +12698,9 @@ namespace CppSharp internal global::CppSharp.Parser.SourceLocation.__Internal location; internal int lineNumberStart; internal int lineNumberEnd; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C name; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C USR; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C debugText; + internal global::Std.BasicString.__Internal name; + internal global::Std.BasicString.__Internal USR; + internal global::Std.BasicString.__Internal debugText; internal byte isIncomplete; internal byte isDependent; internal byte isImplicit; @@ -12468,12 +12708,12 @@ namespace CppSharp internal byte isDeprecated; internal __IntPtr completeDeclaration; internal uint definitionOrder; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ PreprocessedEntities; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Redeclarations; + internal global::Std.Vector.__Internal PreprocessedEntities; + internal global::Std.Vector.__Internal Redeclarations; internal __IntPtr originalPtr; internal __IntPtr comment; internal __IntPtr TemplatedDecl; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Parameters; + internal global::Std.Vector.__Internal Parameters; internal byte isParameterPack; internal byte isPackExpansion; internal byte isExpandedParameterPack; @@ -12497,11 +12737,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TemplateTemplateParameter)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -12521,7 +12761,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TemplateTemplateParameter(void* native, bool skipVTables = false) @@ -12534,7 +12774,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateTemplateParameter.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -12543,7 +12783,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateTemplateParameter.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -12618,9 +12858,9 @@ namespace CppSharp internal global::CppSharp.Parser.SourceLocation.__Internal location; internal int lineNumberStart; internal int lineNumberEnd; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C name; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C USR; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C debugText; + internal global::Std.BasicString.__Internal name; + internal global::Std.BasicString.__Internal USR; + internal global::Std.BasicString.__Internal debugText; internal byte isIncomplete; internal byte isDependent; internal byte isImplicit; @@ -12628,8 +12868,8 @@ namespace CppSharp internal byte isDeprecated; internal __IntPtr completeDeclaration; internal uint definitionOrder; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ PreprocessedEntities; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Redeclarations; + internal global::Std.Vector.__Internal PreprocessedEntities; + internal global::Std.Vector.__Internal Redeclarations; internal __IntPtr originalPtr; internal __IntPtr comment; internal uint depth; @@ -12656,11 +12896,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TypeTemplateParameter)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -12680,7 +12920,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TypeTemplateParameter(void* native, bool skipVTables = false) @@ -12693,7 +12933,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypeTemplateParameter.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -12702,7 +12942,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypeTemplateParameter.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -12753,9 +12993,9 @@ namespace CppSharp internal global::CppSharp.Parser.SourceLocation.__Internal location; internal int lineNumberStart; internal int lineNumberEnd; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C name; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C USR; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C debugText; + internal global::Std.BasicString.__Internal name; + internal global::Std.BasicString.__Internal USR; + internal global::Std.BasicString.__Internal debugText; internal byte isIncomplete; internal byte isDependent; internal byte isImplicit; @@ -12763,8 +13003,8 @@ namespace CppSharp internal byte isDeprecated; internal __IntPtr completeDeclaration; internal uint definitionOrder; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ PreprocessedEntities; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Redeclarations; + internal global::Std.Vector.__Internal PreprocessedEntities; + internal global::Std.Vector.__Internal Redeclarations; internal __IntPtr originalPtr; internal __IntPtr comment; internal uint depth; @@ -12795,11 +13035,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (NonTypeTemplateParameter)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -12819,7 +13059,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected NonTypeTemplateParameter(void* native, bool skipVTables = false) @@ -12832,7 +13072,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.NonTypeTemplateParameter.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -12841,7 +13081,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.NonTypeTemplateParameter.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -12944,9 +13184,9 @@ namespace CppSharp internal global::CppSharp.Parser.SourceLocation.__Internal location; internal int lineNumberStart; internal int lineNumberEnd; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C name; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C USR; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C debugText; + internal global::Std.BasicString.__Internal name; + internal global::Std.BasicString.__Internal USR; + internal global::Std.BasicString.__Internal debugText; internal byte isIncomplete; internal byte isDependent; internal byte isImplicit; @@ -12954,13 +13194,13 @@ namespace CppSharp internal byte isDeprecated; internal __IntPtr completeDeclaration; internal uint definitionOrder; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ PreprocessedEntities; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Redeclarations; + internal global::Std.Vector.__Internal PreprocessedEntities; + internal global::Std.Vector.__Internal Redeclarations; internal __IntPtr originalPtr; internal __IntPtr comment; internal __IntPtr TemplatedDecl; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Parameters; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_ClassTemplateSpecialization___N_std_S_allocator__S0_ Specializations; + internal global::Std.Vector.__Internal Parameters; + internal global::Std.Vector.__Internal Specializations; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST13ClassTemplateC2Ev", CallingConvention = __CallingConvention.Cdecl)] internal static extern void ctor(__IntPtr __instance); @@ -12999,11 +13239,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ClassTemplate)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -13023,7 +13263,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ClassTemplate(void* native, bool skipVTables = false) @@ -13036,7 +13276,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ClassTemplate.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -13045,7 +13285,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ClassTemplate.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -13133,9 +13373,9 @@ namespace CppSharp internal global::CppSharp.Parser.SourceLocation.__Internal location; internal int lineNumberStart; internal int lineNumberEnd; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C name; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C USR; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C debugText; + internal global::Std.BasicString.__Internal name; + internal global::Std.BasicString.__Internal USR; + internal global::Std.BasicString.__Internal debugText; internal byte isIncomplete; internal byte isDependent; internal byte isImplicit; @@ -13143,25 +13383,25 @@ namespace CppSharp internal byte isDeprecated; internal __IntPtr completeDeclaration; internal uint definitionOrder; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ PreprocessedEntities; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Redeclarations; + internal global::Std.Vector.__Internal PreprocessedEntities; + internal global::Std.Vector.__Internal Redeclarations; internal __IntPtr originalPtr; internal __IntPtr comment; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Namespace___N_std_S_allocator__S0_ Namespaces; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Enumeration___N_std_S_allocator__S0_ Enums; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Function___N_std_S_allocator__S0_ Functions; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Class___N_std_S_allocator__S0_ Classes; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Template___N_std_S_allocator__S0_ Templates; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TypedefDecl___N_std_S_allocator__S0_ Typedefs; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TypeAlias___N_std_S_allocator__S0_ TypeAliases; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Variable___N_std_S_allocator__S0_ Variables; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Friend___N_std_S_allocator__S0_ Friends; + internal global::Std.Vector.__Internal Namespaces; + internal global::Std.Vector.__Internal Enums; + internal global::Std.Vector.__Internal Functions; + internal global::Std.Vector.__Internal Classes; + internal global::Std.Vector.__Internal Templates; + internal global::Std.Vector.__Internal Typedefs; + internal global::Std.Vector.__Internal TypeAliases; + internal global::Std.Vector.__Internal Variables; + internal global::Std.Vector.__Internal Friends; internal global::Std.Map.__Internalc__N_std_S_map____N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_less__S0____N_std_S_allocator____N_std_S_pair__1S0__S3_ anonymous; internal byte isAnonymous; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_BaseClassSpecifier___N_std_S_allocator__S0_ Bases; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Field___N_std_S_allocator__S0_ Fields; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Method___N_std_S_allocator__S0_ Methods; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_AccessSpecifierDecl___N_std_S_allocator__S0_ Specifiers; + internal global::Std.Vector.__Internal Bases; + internal global::Std.Vector.__Internal Fields; + internal global::Std.Vector.__Internal Methods; + internal global::Std.Vector.__Internal Specifiers; internal byte isPOD; internal byte isAbstract; internal byte isUnion; @@ -13175,7 +13415,7 @@ namespace CppSharp internal global::CppSharp.Parser.AST.TagKind tagKind; internal __IntPtr layout; internal __IntPtr templatedDecl; - internal global::Std.Vector.__Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_TemplateArgument___N_std_S_allocator__S0_ Arguments; + internal global::Std.Vector.__Internal Arguments; internal global::CppSharp.Parser.AST.TemplateSpecializationKind specializationKind; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST27ClassTemplateSpecializationC2Ev", CallingConvention = __CallingConvention.Cdecl)] @@ -13209,11 +13449,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ClassTemplateSpecialization)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -13233,7 +13473,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ClassTemplateSpecialization(void* native, bool skipVTables = false) @@ -13246,7 +13486,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ClassTemplateSpecialization.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -13255,7 +13495,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ClassTemplateSpecialization.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -13347,9 +13587,9 @@ namespace CppSharp internal global::CppSharp.Parser.SourceLocation.__Internal location; internal int lineNumberStart; internal int lineNumberEnd; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C name; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C USR; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C debugText; + internal global::Std.BasicString.__Internal name; + internal global::Std.BasicString.__Internal USR; + internal global::Std.BasicString.__Internal debugText; internal byte isIncomplete; internal byte isDependent; internal byte isImplicit; @@ -13357,25 +13597,25 @@ namespace CppSharp internal byte isDeprecated; internal __IntPtr completeDeclaration; internal uint definitionOrder; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ PreprocessedEntities; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Redeclarations; + internal global::Std.Vector.__Internal PreprocessedEntities; + internal global::Std.Vector.__Internal Redeclarations; internal __IntPtr originalPtr; internal __IntPtr comment; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Namespace___N_std_S_allocator__S0_ Namespaces; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Enumeration___N_std_S_allocator__S0_ Enums; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Function___N_std_S_allocator__S0_ Functions; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Class___N_std_S_allocator__S0_ Classes; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Template___N_std_S_allocator__S0_ Templates; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TypedefDecl___N_std_S_allocator__S0_ Typedefs; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TypeAlias___N_std_S_allocator__S0_ TypeAliases; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Variable___N_std_S_allocator__S0_ Variables; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Friend___N_std_S_allocator__S0_ Friends; + internal global::Std.Vector.__Internal Namespaces; + internal global::Std.Vector.__Internal Enums; + internal global::Std.Vector.__Internal Functions; + internal global::Std.Vector.__Internal Classes; + internal global::Std.Vector.__Internal Templates; + internal global::Std.Vector.__Internal Typedefs; + internal global::Std.Vector.__Internal TypeAliases; + internal global::Std.Vector.__Internal Variables; + internal global::Std.Vector.__Internal Friends; internal global::Std.Map.__Internalc__N_std_S_map____N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_less__S0____N_std_S_allocator____N_std_S_pair__1S0__S3_ anonymous; internal byte isAnonymous; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_BaseClassSpecifier___N_std_S_allocator__S0_ Bases; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Field___N_std_S_allocator__S0_ Fields; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Method___N_std_S_allocator__S0_ Methods; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_AccessSpecifierDecl___N_std_S_allocator__S0_ Specifiers; + internal global::Std.Vector.__Internal Bases; + internal global::Std.Vector.__Internal Fields; + internal global::Std.Vector.__Internal Methods; + internal global::Std.Vector.__Internal Specifiers; internal byte isPOD; internal byte isAbstract; internal byte isUnion; @@ -13389,7 +13629,7 @@ namespace CppSharp internal global::CppSharp.Parser.AST.TagKind tagKind; internal __IntPtr layout; internal __IntPtr templatedDecl; - internal global::Std.Vector.__Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_TemplateArgument___N_std_S_allocator__S0_ Arguments; + internal global::Std.Vector.__Internal Arguments; internal global::CppSharp.Parser.AST.TemplateSpecializationKind specializationKind; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST34ClassTemplatePartialSpecializationC2Ev", CallingConvention = __CallingConvention.Cdecl)] @@ -13411,11 +13651,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ClassTemplatePartialSpecialization)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -13435,7 +13675,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ClassTemplatePartialSpecialization(void* native, bool skipVTables = false) @@ -13448,7 +13688,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ClassTemplatePartialSpecialization.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -13457,7 +13697,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ClassTemplatePartialSpecialization.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -13493,9 +13733,9 @@ namespace CppSharp internal global::CppSharp.Parser.SourceLocation.__Internal location; internal int lineNumberStart; internal int lineNumberEnd; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C name; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C USR; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C debugText; + internal global::Std.BasicString.__Internal name; + internal global::Std.BasicString.__Internal USR; + internal global::Std.BasicString.__Internal debugText; internal byte isIncomplete; internal byte isDependent; internal byte isImplicit; @@ -13503,13 +13743,13 @@ namespace CppSharp internal byte isDeprecated; internal __IntPtr completeDeclaration; internal uint definitionOrder; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ PreprocessedEntities; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Redeclarations; + internal global::Std.Vector.__Internal PreprocessedEntities; + internal global::Std.Vector.__Internal Redeclarations; internal __IntPtr originalPtr; internal __IntPtr comment; internal __IntPtr TemplatedDecl; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Parameters; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_FunctionTemplateSpecialization___N_std_S_allocator__S0_ Specializations; + internal global::Std.Vector.__Internal Parameters; + internal global::Std.Vector.__Internal Specializations; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST16FunctionTemplateC2Ev", CallingConvention = __CallingConvention.Cdecl)] internal static extern void ctor(__IntPtr __instance); @@ -13545,11 +13785,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (FunctionTemplate)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -13569,7 +13809,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected FunctionTemplate(void* native, bool skipVTables = false) @@ -13582,7 +13822,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FunctionTemplate.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -13591,7 +13831,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FunctionTemplate.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -13661,7 +13901,7 @@ namespace CppSharp public partial struct __Internal { internal __IntPtr _template; - internal global::Std.Vector.__Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_TemplateArgument___N_std_S_allocator__S0_ Arguments; + internal global::Std.Vector.__Internal Arguments; internal __IntPtr specializedFunction; internal global::CppSharp.Parser.AST.TemplateSpecializationKind specializationKind; @@ -13689,7 +13929,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.FunctionTemplateSpecialization managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.FunctionTemplateSpecialization managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -13702,11 +13954,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (FunctionTemplateSpecialization)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -13726,7 +13978,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected FunctionTemplateSpecialization(void* native, bool skipVTables = false) @@ -13740,7 +13992,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FunctionTemplateSpecialization.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -13748,7 +14000,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FunctionTemplateSpecialization.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -13859,9 +14111,9 @@ namespace CppSharp internal global::CppSharp.Parser.SourceLocation.__Internal location; internal int lineNumberStart; internal int lineNumberEnd; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C name; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C USR; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C debugText; + internal global::Std.BasicString.__Internal name; + internal global::Std.BasicString.__Internal USR; + internal global::Std.BasicString.__Internal debugText; internal byte isIncomplete; internal byte isDependent; internal byte isImplicit; @@ -13869,13 +14121,13 @@ namespace CppSharp internal byte isDeprecated; internal __IntPtr completeDeclaration; internal uint definitionOrder; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ PreprocessedEntities; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Redeclarations; + internal global::Std.Vector.__Internal PreprocessedEntities; + internal global::Std.Vector.__Internal Redeclarations; internal __IntPtr originalPtr; internal __IntPtr comment; internal __IntPtr TemplatedDecl; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Parameters; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_VarTemplateSpecialization___N_std_S_allocator__S0_ Specializations; + internal global::Std.Vector.__Internal Parameters; + internal global::Std.Vector.__Internal Specializations; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST11VarTemplateC2Ev", CallingConvention = __CallingConvention.Cdecl)] internal static extern void ctor(__IntPtr __instance); @@ -13914,11 +14166,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (VarTemplate)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -13938,7 +14190,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected VarTemplate(void* native, bool skipVTables = false) @@ -13951,7 +14203,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VarTemplate.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -13960,7 +14212,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VarTemplate.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -14048,9 +14300,9 @@ namespace CppSharp internal global::CppSharp.Parser.SourceLocation.__Internal location; internal int lineNumberStart; internal int lineNumberEnd; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C name; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C USR; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C debugText; + internal global::Std.BasicString.__Internal name; + internal global::Std.BasicString.__Internal USR; + internal global::Std.BasicString.__Internal debugText; internal byte isIncomplete; internal byte isDependent; internal byte isImplicit; @@ -14058,16 +14310,16 @@ namespace CppSharp internal byte isDeprecated; internal __IntPtr completeDeclaration; internal uint definitionOrder; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ PreprocessedEntities; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Redeclarations; + internal global::Std.Vector.__Internal PreprocessedEntities; + internal global::Std.Vector.__Internal Redeclarations; internal __IntPtr originalPtr; internal __IntPtr comment; internal byte isConstExpr; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C mangled; + internal global::Std.BasicString.__Internal mangled; internal global::CppSharp.Parser.AST.QualifiedType.__Internal qualifiedType; internal __IntPtr initializer; internal __IntPtr templatedDecl; - internal global::Std.Vector.__Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_TemplateArgument___N_std_S_allocator__S0_ Arguments; + internal global::Std.Vector.__Internal Arguments; internal global::CppSharp.Parser.AST.TemplateSpecializationKind specializationKind; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST25VarTemplateSpecializationC2Ev", CallingConvention = __CallingConvention.Cdecl)] @@ -14101,11 +14353,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (VarTemplateSpecialization)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -14125,7 +14377,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected VarTemplateSpecialization(void* native, bool skipVTables = false) @@ -14138,7 +14390,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VarTemplateSpecialization.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -14147,7 +14399,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VarTemplateSpecialization.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -14239,9 +14491,9 @@ namespace CppSharp internal global::CppSharp.Parser.SourceLocation.__Internal location; internal int lineNumberStart; internal int lineNumberEnd; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C name; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C USR; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C debugText; + internal global::Std.BasicString.__Internal name; + internal global::Std.BasicString.__Internal USR; + internal global::Std.BasicString.__Internal debugText; internal byte isIncomplete; internal byte isDependent; internal byte isImplicit; @@ -14249,16 +14501,16 @@ namespace CppSharp internal byte isDeprecated; internal __IntPtr completeDeclaration; internal uint definitionOrder; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ PreprocessedEntities; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Redeclarations; + internal global::Std.Vector.__Internal PreprocessedEntities; + internal global::Std.Vector.__Internal Redeclarations; internal __IntPtr originalPtr; internal __IntPtr comment; internal byte isConstExpr; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C mangled; + internal global::Std.BasicString.__Internal mangled; internal global::CppSharp.Parser.AST.QualifiedType.__Internal qualifiedType; internal __IntPtr initializer; internal __IntPtr templatedDecl; - internal global::Std.Vector.__Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_TemplateArgument___N_std_S_allocator__S0_ Arguments; + internal global::Std.Vector.__Internal Arguments; internal global::CppSharp.Parser.AST.TemplateSpecializationKind specializationKind; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST32VarTemplatePartialSpecializationC2Ev", CallingConvention = __CallingConvention.Cdecl)] @@ -14280,11 +14532,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (VarTemplatePartialSpecialization)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -14304,7 +14556,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected VarTemplatePartialSpecialization(void* native, bool skipVTables = false) @@ -14317,7 +14569,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VarTemplatePartialSpecialization.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -14326,7 +14578,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VarTemplatePartialSpecialization.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -14362,9 +14614,9 @@ namespace CppSharp internal global::CppSharp.Parser.SourceLocation.__Internal location; internal int lineNumberStart; internal int lineNumberEnd; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C name; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C USR; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C debugText; + internal global::Std.BasicString.__Internal name; + internal global::Std.BasicString.__Internal USR; + internal global::Std.BasicString.__Internal debugText; internal byte isIncomplete; internal byte isDependent; internal byte isImplicit; @@ -14372,8 +14624,8 @@ namespace CppSharp internal byte isDeprecated; internal __IntPtr completeDeclaration; internal uint definitionOrder; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ PreprocessedEntities; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Redeclarations; + internal global::Std.Vector.__Internal PreprocessedEntities; + internal global::Std.Vector.__Internal Redeclarations; internal __IntPtr originalPtr; internal __IntPtr comment; @@ -14396,11 +14648,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (UnresolvedUsingTypename)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -14420,7 +14672,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected UnresolvedUsingTypename(void* native, bool skipVTables = false) @@ -14433,7 +14685,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnresolvedUsingTypename.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -14442,7 +14694,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnresolvedUsingTypename.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -14478,9 +14730,9 @@ namespace CppSharp internal global::CppSharp.Parser.SourceLocation.__Internal location; internal int lineNumberStart; internal int lineNumberEnd; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C name; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C USR; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C debugText; + internal global::Std.BasicString.__Internal name; + internal global::Std.BasicString.__Internal USR; + internal global::Std.BasicString.__Internal debugText; internal byte isIncomplete; internal byte isDependent; internal byte isImplicit; @@ -14488,19 +14740,19 @@ namespace CppSharp internal byte isDeprecated; internal __IntPtr completeDeclaration; internal uint definitionOrder; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ PreprocessedEntities; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Redeclarations; + internal global::Std.Vector.__Internal PreprocessedEntities; + internal global::Std.Vector.__Internal Redeclarations; internal __IntPtr originalPtr; internal __IntPtr comment; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Namespace___N_std_S_allocator__S0_ Namespaces; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Enumeration___N_std_S_allocator__S0_ Enums; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Function___N_std_S_allocator__S0_ Functions; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Class___N_std_S_allocator__S0_ Classes; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Template___N_std_S_allocator__S0_ Templates; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TypedefDecl___N_std_S_allocator__S0_ Typedefs; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TypeAlias___N_std_S_allocator__S0_ TypeAliases; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Variable___N_std_S_allocator__S0_ Variables; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Friend___N_std_S_allocator__S0_ Friends; + internal global::Std.Vector.__Internal Namespaces; + internal global::Std.Vector.__Internal Enums; + internal global::Std.Vector.__Internal Functions; + internal global::Std.Vector.__Internal Classes; + internal global::Std.Vector.__Internal Templates; + internal global::Std.Vector.__Internal Typedefs; + internal global::Std.Vector.__Internal TypeAliases; + internal global::Std.Vector.__Internal Variables; + internal global::Std.Vector.__Internal Friends; internal global::Std.Map.__Internalc__N_std_S_map____N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_less__S0____N_std_S_allocator____N_std_S_pair__1S0__S3_ anonymous; internal byte isAnonymous; internal byte isInline; @@ -14524,11 +14776,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Namespace)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -14548,7 +14800,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Namespace(void* native, bool skipVTables = false) @@ -14561,7 +14813,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Namespace.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -14570,7 +14822,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Namespace.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -14624,7 +14876,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.PreprocessedEntity managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.PreprocessedEntity managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -14637,11 +14901,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (PreprocessedEntity)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -14661,7 +14925,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected PreprocessedEntity(void* native, bool skipVTables = false) @@ -14675,7 +14939,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PreprocessedEntity.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -14683,7 +14947,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PreprocessedEntity.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.PreprocessedEntity.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.PreprocessedEntity.__Internal*) _0.__Instance); } @@ -14753,8 +15017,8 @@ namespace CppSharp internal global::CppSharp.Parser.AST.MacroLocation macroLocation; internal __IntPtr originalPtr; internal global::CppSharp.Parser.AST.DeclarationKind kind; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C name; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C expression; + internal global::Std.BasicString.__Internal name; + internal global::Std.BasicString.__Internal expression; internal int lineNumberStart; internal int lineNumberEnd; @@ -14777,11 +15041,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (MacroDefinition)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -14801,7 +15065,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected MacroDefinition(void* native, bool skipVTables = false) @@ -14814,7 +15078,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MacroDefinition.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -14823,7 +15087,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MacroDefinition.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -14908,8 +15172,8 @@ namespace CppSharp internal global::CppSharp.Parser.AST.MacroLocation macroLocation; internal __IntPtr originalPtr; internal global::CppSharp.Parser.AST.DeclarationKind kind; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C name; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C text; + internal global::Std.BasicString.__Internal name; + internal global::Std.BasicString.__Internal text; internal __IntPtr definition; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST14MacroExpansionC2Ev", CallingConvention = __CallingConvention.Cdecl)] @@ -14931,11 +15195,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (MacroExpansion)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -14955,7 +15219,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected MacroExpansion(void* native, bool skipVTables = false) @@ -14968,7 +15232,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MacroExpansion.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -14977,7 +15241,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MacroExpansion.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -15055,9 +15319,9 @@ namespace CppSharp internal global::CppSharp.Parser.SourceLocation.__Internal location; internal int lineNumberStart; internal int lineNumberEnd; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C name; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C USR; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C debugText; + internal global::Std.BasicString.__Internal name; + internal global::Std.BasicString.__Internal USR; + internal global::Std.BasicString.__Internal debugText; internal byte isIncomplete; internal byte isDependent; internal byte isImplicit; @@ -15065,25 +15329,25 @@ namespace CppSharp internal byte isDeprecated; internal __IntPtr completeDeclaration; internal uint definitionOrder; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ PreprocessedEntities; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ Redeclarations; + internal global::Std.Vector.__Internal PreprocessedEntities; + internal global::Std.Vector.__Internal Redeclarations; internal __IntPtr originalPtr; internal __IntPtr comment; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Namespace___N_std_S_allocator__S0_ Namespaces; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Enumeration___N_std_S_allocator__S0_ Enums; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Function___N_std_S_allocator__S0_ Functions; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Class___N_std_S_allocator__S0_ Classes; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Template___N_std_S_allocator__S0_ Templates; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TypedefDecl___N_std_S_allocator__S0_ Typedefs; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TypeAlias___N_std_S_allocator__S0_ TypeAliases; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Variable___N_std_S_allocator__S0_ Variables; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Friend___N_std_S_allocator__S0_ Friends; + internal global::Std.Vector.__Internal Namespaces; + internal global::Std.Vector.__Internal Enums; + internal global::Std.Vector.__Internal Functions; + internal global::Std.Vector.__Internal Classes; + internal global::Std.Vector.__Internal Templates; + internal global::Std.Vector.__Internal Typedefs; + internal global::Std.Vector.__Internal TypeAliases; + internal global::Std.Vector.__Internal Variables; + internal global::Std.Vector.__Internal Friends; internal global::Std.Map.__Internalc__N_std_S_map____N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_less__S0____N_std_S_allocator____N_std_S_pair__1S0__S3_ anonymous; internal byte isAnonymous; internal byte isInline; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C fileName; + internal global::Std.BasicString.__Internal fileName; internal byte isSystemHeader; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_MacroDefinition___N_std_S_allocator__S0_ Macros; + internal global::Std.Vector.__Internal Macros; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST15TranslationUnitC2Ev", CallingConvention = __CallingConvention.Cdecl)] internal static extern void ctor(__IntPtr __instance); @@ -15116,11 +15380,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TranslationUnit)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -15140,7 +15404,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TranslationUnit(void* native, bool skipVTables = false) @@ -15153,7 +15417,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TranslationUnit.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -15162,7 +15426,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TranslationUnit.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -15247,7 +15511,7 @@ namespace CppSharp [StructLayout(LayoutKind.Sequential, Size = 24)] public partial struct __Internal { - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TranslationUnit___N_std_S_allocator__S0_ TranslationUnits; + internal global::Std.Vector.__Internal TranslationUnits; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST10ASTContextC2Ev", CallingConvention = __CallingConvention.Cdecl)] internal static extern void ctor(__IntPtr __instance); @@ -15276,7 +15540,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.ASTContext managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.ASTContext managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -15289,11 +15565,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ASTContext)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -15313,7 +15589,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ASTContext(void* native, bool skipVTables = false) @@ -15327,7 +15603,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ASTContext.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -15335,7 +15611,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ASTContext.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -15565,7 +15841,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.Stmt managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.Stmt managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -15578,11 +15866,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Stmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -15602,7 +15890,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Stmt(void* native, bool skipVTables = false) @@ -15616,7 +15904,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Stmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -15624,7 +15912,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Stmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -15632,7 +15920,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Stmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.Stmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.Stmt.__Internal*) _0.__Instance); } @@ -15723,7 +16011,7 @@ namespace CppSharp internal global::CppSharp.Parser.SourceRange.__Internal sourceRange; internal global::CppSharp.Parser.SourceLocation.__Internal beginLoc; internal global::CppSharp.Parser.SourceLocation.__Internal endLoc; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ decls; + internal global::Std.Vector.__Internal decls; internal byte isSingleDecl; internal __IntPtr singleDecl; @@ -15758,11 +16046,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DeclStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -15782,7 +16070,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DeclStmt(void* native, bool skipVTables = false) @@ -15795,7 +16083,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DeclStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -15804,7 +16092,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DeclStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -15912,11 +16200,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (NullStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -15936,7 +16224,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected NullStmt(void* native, bool skipVTables = false) @@ -15949,7 +16237,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.NullStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -15958,7 +16246,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.NullStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.NullStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.NullStmt.__Internal*) _0.__Instance); } @@ -15998,7 +16286,7 @@ namespace CppSharp internal global::CppSharp.Parser.SourceRange.__Internal sourceRange; internal global::CppSharp.Parser.SourceLocation.__Internal beginLoc; internal global::CppSharp.Parser.SourceLocation.__Internal endLoc; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Stmt___N_std_S_allocator__S0_ body; + internal global::Std.Vector.__Internal body; internal byte body_empty; internal uint size; internal __IntPtr body_front; @@ -16037,11 +16325,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CompoundStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -16061,7 +16349,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CompoundStmt(void* native, bool skipVTables = false) @@ -16074,7 +16362,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CompoundStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -16083,7 +16371,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CompoundStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -16248,11 +16536,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (SwitchCase)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -16272,7 +16560,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected SwitchCase(void* native, bool skipVTables = false) @@ -16285,7 +16573,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SwitchCase.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -16294,7 +16582,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SwitchCase.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -16303,7 +16591,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SwitchCase.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.SwitchCase.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.SwitchCase.__Internal*) _0.__Instance); } @@ -16387,11 +16675,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CaseStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -16411,7 +16699,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CaseStmt(void* native, bool skipVTables = false) @@ -16424,7 +16712,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CaseStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -16433,7 +16721,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CaseStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CaseStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CaseStmt.__Internal*) _0.__Instance); } @@ -16535,11 +16823,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DefaultStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -16559,7 +16847,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DefaultStmt(void* native, bool skipVTables = false) @@ -16572,7 +16860,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DefaultStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -16581,7 +16869,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DefaultStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.DefaultStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.DefaultStmt.__Internal*) _0.__Instance); } @@ -16629,11 +16917,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (LabelStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -16653,7 +16941,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected LabelStmt(void* native, bool skipVTables = false) @@ -16666,7 +16954,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.LabelStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -16675,7 +16963,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.LabelStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.LabelStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.LabelStmt.__Internal*) _0.__Instance); if (_0.__name_OwnsNativeMemory) this.Name = _0.Name; @@ -16762,11 +17050,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (AttributedStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -16786,7 +17074,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected AttributedStmt(void* native, bool skipVTables = false) @@ -16799,7 +17087,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AttributedStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -16808,7 +17096,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AttributedStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.AttributedStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.AttributedStmt.__Internal*) _0.__Instance); } @@ -16878,11 +17166,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (IfStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -16902,7 +17190,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected IfStmt(void* native, bool skipVTables = false) @@ -16915,7 +17203,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.IfStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -16924,7 +17212,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.IfStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.IfStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.IfStmt.__Internal*) _0.__Instance); } @@ -17124,11 +17412,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (SwitchStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -17148,7 +17436,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected SwitchStmt(void* native, bool skipVTables = false) @@ -17161,7 +17449,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SwitchStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -17170,7 +17458,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SwitchStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.SwitchStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.SwitchStmt.__Internal*) _0.__Instance); } @@ -17314,11 +17602,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (WhileStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -17338,7 +17626,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected WhileStmt(void* native, bool skipVTables = false) @@ -17351,7 +17639,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.WhileStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -17360,7 +17648,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.WhileStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.WhileStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.WhileStmt.__Internal*) _0.__Instance); } @@ -17464,11 +17752,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DoStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -17488,7 +17776,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DoStmt(void* native, bool skipVTables = false) @@ -17501,7 +17789,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DoStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -17510,7 +17798,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DoStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.DoStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.DoStmt.__Internal*) _0.__Instance); } @@ -17616,11 +17904,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ForStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -17640,7 +17928,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ForStmt(void* native, bool skipVTables = false) @@ -17653,7 +17941,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ForStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -17662,7 +17950,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ForStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ForStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ForStmt.__Internal*) _0.__Instance); } @@ -17804,11 +18092,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (GotoStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -17828,7 +18116,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected GotoStmt(void* native, bool skipVTables = false) @@ -17841,7 +18129,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.GotoStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -17850,7 +18138,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.GotoStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.GotoStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.GotoStmt.__Internal*) _0.__Instance); } @@ -17910,11 +18198,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (IndirectGotoStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -17934,7 +18222,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected IndirectGotoStmt(void* native, bool skipVTables = false) @@ -17947,7 +18235,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.IndirectGotoStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -17956,7 +18244,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.IndirectGotoStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.IndirectGotoStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.IndirectGotoStmt.__Internal*) _0.__Instance); } @@ -18028,11 +18316,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ContinueStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -18052,7 +18340,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ContinueStmt(void* native, bool skipVTables = false) @@ -18065,7 +18353,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ContinueStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -18074,7 +18362,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ContinueStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ContinueStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ContinueStmt.__Internal*) _0.__Instance); } @@ -18119,11 +18407,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (BreakStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -18143,7 +18431,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected BreakStmt(void* native, bool skipVTables = false) @@ -18156,7 +18444,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BreakStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -18165,7 +18453,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BreakStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.BreakStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.BreakStmt.__Internal*) _0.__Instance); } @@ -18211,11 +18499,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ReturnStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -18235,7 +18523,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ReturnStmt(void* native, bool skipVTables = false) @@ -18248,7 +18536,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ReturnStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -18257,7 +18545,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ReturnStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ReturnStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ReturnStmt.__Internal*) _0.__Instance); } @@ -18298,8 +18586,8 @@ namespace CppSharp internal global::CppSharp.Parser.SourceRange.__Internal sourceRange; internal global::CppSharp.Parser.SourceLocation.__Internal beginLoc; internal global::CppSharp.Parser.SourceLocation.__Internal endLoc; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Expr___N_std_S_allocator__S0_ inputs; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Expr___N_std_S_allocator__S0_ outputs; + internal global::Std.Vector.__Internal inputs; + internal global::Std.Vector.__Internal outputs; internal global::CppSharp.Parser.SourceLocation.__Internal asmLoc; internal byte simple; internal byte _volatile; @@ -18354,11 +18642,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (AsmStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -18378,7 +18666,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected AsmStmt(void* native, bool skipVTables = false) @@ -18391,7 +18679,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AsmStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -18400,7 +18688,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AsmStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -18409,7 +18697,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AsmStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -18597,8 +18885,8 @@ namespace CppSharp internal global::CppSharp.Parser.SourceRange.__Internal sourceRange; internal global::CppSharp.Parser.SourceLocation.__Internal beginLoc; internal global::CppSharp.Parser.SourceLocation.__Internal endLoc; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Expr___N_std_S_allocator__S0_ inputs; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Expr___N_std_S_allocator__S0_ outputs; + internal global::Std.Vector.__Internal inputs; + internal global::Std.Vector.__Internal outputs; internal global::CppSharp.Parser.SourceLocation.__Internal asmLoc; internal byte simple; internal byte _volatile; @@ -18625,7 +18913,7 @@ namespace CppSharp { internal byte isString; internal byte isOperand; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C @string; + internal global::Std.BasicString.__Internal @string; internal uint operandNo; internal sbyte modifier; @@ -18647,7 +18935,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.GCCAsmStmt.AsmStringPiece managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.GCCAsmStmt.AsmStringPiece managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -18660,11 +18960,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (AsmStringPiece)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -18684,7 +18984,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected AsmStringPiece(void* native, bool skipVTables = false) @@ -18698,7 +18998,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.GCCAsmStmt.AsmStringPiece.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -18706,7 +19006,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.GCCAsmStmt.AsmStringPiece.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -18809,11 +19109,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (GCCAsmStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -18833,7 +19133,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected GCCAsmStmt(void* native, bool skipVTables = false) @@ -18846,7 +19146,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.GCCAsmStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -18855,7 +19155,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.GCCAsmStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -18900,8 +19200,8 @@ namespace CppSharp internal global::CppSharp.Parser.SourceRange.__Internal sourceRange; internal global::CppSharp.Parser.SourceLocation.__Internal beginLoc; internal global::CppSharp.Parser.SourceLocation.__Internal endLoc; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Expr___N_std_S_allocator__S0_ inputs; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Expr___N_std_S_allocator__S0_ outputs; + internal global::Std.Vector.__Internal inputs; + internal global::Std.Vector.__Internal outputs; internal global::CppSharp.Parser.SourceLocation.__Internal asmLoc; internal byte simple; internal byte _volatile; @@ -18912,7 +19212,7 @@ namespace CppSharp internal global::CppSharp.Parser.SourceLocation.__Internal lBraceLoc; internal byte hasBraces; internal uint numAsmToks; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C asmString; + internal global::Std.BasicString.__Internal asmString; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST9MSAsmStmtC2Ev", CallingConvention = __CallingConvention.Cdecl)] internal static extern void ctor(__IntPtr __instance); @@ -18933,11 +19233,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (MSAsmStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -18957,7 +19257,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected MSAsmStmt(void* native, bool skipVTables = false) @@ -18970,7 +19270,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MSAsmStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -18979,7 +19279,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MSAsmStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -19084,11 +19384,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (SEHExceptStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -19108,7 +19408,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected SEHExceptStmt(void* native, bool skipVTables = false) @@ -19121,7 +19421,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SEHExceptStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -19130,7 +19430,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SEHExceptStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.SEHExceptStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.SEHExceptStmt.__Internal*) _0.__Instance); } @@ -19204,11 +19504,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (SEHFinallyStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -19228,7 +19528,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected SEHFinallyStmt(void* native, bool skipVTables = false) @@ -19241,7 +19541,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SEHFinallyStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -19250,7 +19550,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SEHFinallyStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.SEHFinallyStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.SEHFinallyStmt.__Internal*) _0.__Instance); } @@ -19314,11 +19614,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (SEHTryStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -19338,7 +19638,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected SEHTryStmt(void* native, bool skipVTables = false) @@ -19351,7 +19651,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SEHTryStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -19360,7 +19660,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SEHTryStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.SEHTryStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.SEHTryStmt.__Internal*) _0.__Instance); } @@ -19474,11 +19774,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (SEHLeaveStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -19498,7 +19798,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected SEHLeaveStmt(void* native, bool skipVTables = false) @@ -19511,7 +19811,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SEHLeaveStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -19520,7 +19820,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SEHLeaveStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.SEHLeaveStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.SEHLeaveStmt.__Internal*) _0.__Instance); } @@ -19547,7 +19847,7 @@ namespace CppSharp internal global::CppSharp.Parser.SourceRange.__Internal sourceRange; internal global::CppSharp.Parser.SourceLocation.__Internal beginLoc; internal global::CppSharp.Parser.SourceLocation.__Internal endLoc; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Expr___N_std_S_allocator__S0_ capture_inits; + internal global::Std.Vector.__Internal capture_inits; internal __IntPtr capturedStmt; internal uint capture_size; @@ -19602,7 +19902,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.CapturedStmt.Capture managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.CapturedStmt.Capture managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -19615,11 +19927,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Capture)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -19639,7 +19951,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Capture(void* native, bool skipVTables = false) @@ -19653,7 +19965,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CapturedStmt.Capture.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -19661,7 +19973,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CapturedStmt.Capture.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CapturedStmt.Capture.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CapturedStmt.Capture.__Internal*) _0.__Instance); } @@ -19771,11 +20083,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CapturedStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -19795,7 +20107,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CapturedStmt(void* native, bool skipVTables = false) @@ -19808,7 +20120,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CapturedStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -19817,7 +20129,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CapturedStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -19926,11 +20238,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXCatchStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -19950,7 +20262,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXCatchStmt(void* native, bool skipVTables = false) @@ -19963,7 +20275,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXCatchStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -19972,7 +20284,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXCatchStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXCatchStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXCatchStmt.__Internal*) _0.__Instance); } @@ -20048,11 +20360,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXTryStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -20072,7 +20384,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXTryStmt(void* native, bool skipVTables = false) @@ -20085,7 +20397,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXTryStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -20094,7 +20406,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXTryStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXTryStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXTryStmt.__Internal*) _0.__Instance); } @@ -20178,11 +20490,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXForRangeStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -20202,7 +20514,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXForRangeStmt(void* native, bool skipVTables = false) @@ -20215,7 +20527,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXForRangeStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -20224,7 +20536,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXForRangeStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXForRangeStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXForRangeStmt.__Internal*) _0.__Instance); } @@ -20437,11 +20749,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (MSDependentExistsStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -20461,7 +20773,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected MSDependentExistsStmt(void* native, bool skipVTables = false) @@ -20474,7 +20786,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MSDependentExistsStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -20483,7 +20795,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MSDependentExistsStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.MSDependentExistsStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.MSDependentExistsStmt.__Internal*) _0.__Instance); } @@ -20602,7 +20914,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.CoroutineBodyStmt.CtorArgs managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.CoroutineBodyStmt.CtorArgs managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -20615,11 +20939,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CtorArgs)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -20639,7 +20963,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CtorArgs(void* native, bool skipVTables = false) @@ -20653,7 +20977,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoroutineBodyStmt.CtorArgs.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -20661,7 +20985,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoroutineBodyStmt.CtorArgs.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CoroutineBodyStmt.CtorArgs.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CoroutineBodyStmt.CtorArgs.__Internal*) _0.__Instance); } @@ -20693,11 +21017,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CoroutineBodyStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -20717,7 +21041,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CoroutineBodyStmt(void* native, bool skipVTables = false) @@ -20730,7 +21054,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoroutineBodyStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -20739,7 +21063,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoroutineBodyStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CoroutineBodyStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CoroutineBodyStmt.__Internal*) _0.__Instance); } @@ -20962,11 +21286,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CoreturnStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -20986,7 +21310,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CoreturnStmt(void* native, bool skipVTables = false) @@ -20999,7 +21323,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoreturnStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -21008,7 +21332,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoreturnStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CoreturnStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CoreturnStmt.__Internal*) _0.__Instance); } @@ -21412,7 +21736,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.Expr.Classification managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.Expr.Classification managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -21425,11 +21761,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Classification)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -21449,7 +21785,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Classification(void* native, bool skipVTables = false) @@ -21463,7 +21799,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Expr.Classification.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -21471,7 +21807,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Expr.Classification.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.Expr.Classification.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.Expr.Classification.__Internal*) _0.__Instance); } @@ -21607,11 +21943,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Expr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -21631,7 +21967,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Expr(void* native, bool skipVTables = false) @@ -21644,7 +21980,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Expr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -21653,7 +21989,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Expr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -21662,7 +21998,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Expr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.Expr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.Expr.__Internal*) _0.__Instance); } @@ -21902,11 +22238,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (FullExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -21926,7 +22262,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected FullExpr(void* native, bool skipVTables = false) @@ -21939,7 +22275,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FullExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -21948,7 +22284,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FullExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -21957,7 +22293,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FullExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.FullExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.FullExpr.__Internal*) _0.__Instance); } @@ -22022,11 +22358,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ConstantExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -22046,7 +22382,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ConstantExpr(void* native, bool skipVTables = false) @@ -22059,7 +22395,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ConstantExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -22068,7 +22404,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ConstantExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ConstantExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ConstantExpr.__Internal*) _0.__Instance); } } @@ -22116,11 +22452,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (OpaqueValueExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -22140,7 +22476,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected OpaqueValueExpr(void* native, bool skipVTables = false) @@ -22153,7 +22489,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.OpaqueValueExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -22162,7 +22498,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.OpaqueValueExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.OpaqueValueExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.OpaqueValueExpr.__Internal*) _0.__Instance); } @@ -22259,11 +22595,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DeclRefExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -22283,7 +22619,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DeclRefExpr(void* native, bool skipVTables = false) @@ -22296,7 +22632,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DeclRefExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -22305,7 +22641,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DeclRefExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.DeclRefExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.DeclRefExpr.__Internal*) _0.__Instance); } @@ -22509,11 +22845,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (IntegerLiteral)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -22533,7 +22869,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected IntegerLiteral(void* native, bool skipVTables = false) @@ -22546,7 +22882,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.IntegerLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -22555,7 +22891,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.IntegerLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.IntegerLiteral.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.IntegerLiteral.__Internal*) _0.__Instance); } @@ -22628,11 +22964,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (FixedPointLiteral)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -22652,7 +22988,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected FixedPointLiteral(void* native, bool skipVTables = false) @@ -22665,7 +23001,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FixedPointLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -22674,7 +23010,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FixedPointLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.FixedPointLiteral.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.FixedPointLiteral.__Internal*) _0.__Instance); } @@ -22757,11 +23093,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CharacterLiteral)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -22781,7 +23117,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CharacterLiteral(void* native, bool skipVTables = false) @@ -22794,7 +23130,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CharacterLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -22803,7 +23139,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CharacterLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CharacterLiteral.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CharacterLiteral.__Internal*) _0.__Instance); } @@ -22890,11 +23226,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (FloatingLiteral)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -22914,7 +23250,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected FloatingLiteral(void* native, bool skipVTables = false) @@ -22927,7 +23263,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FloatingLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -22936,7 +23272,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FloatingLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.FloatingLiteral.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.FloatingLiteral.__Internal*) _0.__Instance); } @@ -23021,11 +23357,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ImaginaryLiteral)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -23045,7 +23381,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ImaginaryLiteral(void* native, bool skipVTables = false) @@ -23058,7 +23394,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ImaginaryLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -23067,7 +23403,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ImaginaryLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ImaginaryLiteral.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ImaginaryLiteral.__Internal*) _0.__Instance); } @@ -23109,8 +23445,8 @@ namespace CppSharp internal __IntPtr sourceBitField; internal __IntPtr referencedDeclOfCallee; internal byte hasPlaceholderType; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C @string; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C bytes; + internal global::Std.BasicString.__Internal @string; + internal global::Std.BasicString.__Internal bytes; internal uint byteLength; internal uint length; internal uint charByteWidth; @@ -23153,11 +23489,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (StringLiteral)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -23177,7 +23513,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected StringLiteral(void* native, bool skipVTables = false) @@ -23190,7 +23526,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.StringLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -23199,7 +23535,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.StringLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -23473,11 +23809,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (PredefinedExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -23497,7 +23833,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected PredefinedExpr(void* native, bool skipVTables = false) @@ -23510,7 +23846,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PredefinedExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -23519,7 +23855,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PredefinedExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.PredefinedExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.PredefinedExpr.__Internal*) _0.__Instance); } @@ -23593,11 +23929,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ParenExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -23617,7 +23953,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ParenExpr(void* native, bool skipVTables = false) @@ -23630,7 +23966,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ParenExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -23639,7 +23975,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ParenExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ParenExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ParenExpr.__Internal*) _0.__Instance); } @@ -23735,11 +24071,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (UnaryOperator)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -23759,7 +24095,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected UnaryOperator(void* native, bool skipVTables = false) @@ -23772,7 +24108,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnaryOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -23781,7 +24117,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnaryOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.UnaryOperator.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.UnaryOperator.__Internal*) _0.__Instance); } @@ -23974,11 +24310,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (OffsetOfExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -23998,7 +24334,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected OffsetOfExpr(void* native, bool skipVTables = false) @@ -24011,7 +24347,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.OffsetOfExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -24020,7 +24356,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.OffsetOfExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.OffsetOfExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.OffsetOfExpr.__Internal*) _0.__Instance); } @@ -24124,11 +24460,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (UnaryExprOrTypeTraitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -24148,7 +24484,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected UnaryExprOrTypeTraitExpr(void* native, bool skipVTables = false) @@ -24161,7 +24497,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnaryExprOrTypeTraitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -24170,7 +24506,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnaryExprOrTypeTraitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.UnaryExprOrTypeTraitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.UnaryExprOrTypeTraitExpr.__Internal*) _0.__Instance); } @@ -24316,11 +24652,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ArraySubscriptExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -24340,7 +24676,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ArraySubscriptExpr(void* native, bool skipVTables = false) @@ -24353,7 +24689,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ArraySubscriptExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -24362,7 +24698,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ArraySubscriptExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ArraySubscriptExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ArraySubscriptExpr.__Internal*) _0.__Instance); } @@ -24459,7 +24795,7 @@ namespace CppSharp internal __IntPtr sourceBitField; internal __IntPtr referencedDeclOfCallee; internal byte hasPlaceholderType; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Expr___N_std_S_allocator__S0_ arguments; + internal global::Std.Vector.__Internal arguments; internal __IntPtr callee; internal global::CppSharp.Parser.SourceLocation.__Internal rParenLoc; internal __IntPtr calleeDecl; @@ -24503,11 +24839,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CallExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -24527,7 +24863,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CallExpr(void* native, bool skipVTables = false) @@ -24540,7 +24876,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CallExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -24549,7 +24885,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CallExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -24558,7 +24894,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CallExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -24776,11 +25112,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (MemberExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -24800,7 +25136,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected MemberExpr(void* native, bool skipVTables = false) @@ -24813,7 +25149,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MemberExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -24822,7 +25158,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MemberExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.MemberExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.MemberExpr.__Internal*) _0.__Instance); } @@ -25040,11 +25376,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CompoundLiteralExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -25064,7 +25400,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CompoundLiteralExpr(void* native, bool skipVTables = false) @@ -25077,7 +25413,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CompoundLiteralExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -25086,7 +25422,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CompoundLiteralExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CompoundLiteralExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CompoundLiteralExpr.__Internal*) _0.__Instance); } @@ -25182,11 +25518,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CastExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -25206,7 +25542,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CastExpr(void* native, bool skipVTables = false) @@ -25219,7 +25555,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -25228,7 +25564,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -25237,7 +25573,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CastExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CastExpr.__Internal*) _0.__Instance); if (_0.__castKindName_OwnsNativeMemory) this.CastKindName = _0.CastKindName; @@ -25408,11 +25744,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ImplicitCastExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -25432,7 +25768,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ImplicitCastExpr(void* native, bool skipVTables = false) @@ -25445,7 +25781,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ImplicitCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -25454,7 +25790,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ImplicitCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ImplicitCastExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ImplicitCastExpr.__Internal*) _0.__Instance); } @@ -25523,11 +25859,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ExplicitCastExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -25547,7 +25883,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ExplicitCastExpr(void* native, bool skipVTables = false) @@ -25560,7 +25896,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ExplicitCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -25569,7 +25905,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ExplicitCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -25578,7 +25914,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ExplicitCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ExplicitCastExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ExplicitCastExpr.__Internal*) _0.__Instance); } @@ -25653,11 +25989,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CStyleCastExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -25677,7 +26013,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CStyleCastExpr(void* native, bool skipVTables = false) @@ -25690,7 +26026,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CStyleCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -25699,7 +26035,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CStyleCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CStyleCastExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CStyleCastExpr.__Internal*) _0.__Instance); } @@ -25757,7 +26093,7 @@ namespace CppSharp internal global::CppSharp.Parser.AST.BinaryOperatorKind opcode; internal __IntPtr lHS; internal __IntPtr rHS; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C opcodeStr; + internal global::Std.BasicString.__Internal opcodeStr; internal byte isPtrMemOp; internal byte isMultiplicativeOp; internal byte isAdditiveOp; @@ -25795,11 +26131,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (BinaryOperator)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -25819,7 +26155,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected BinaryOperator(void* native, bool skipVTables = false) @@ -25832,7 +26168,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BinaryOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -25841,7 +26177,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BinaryOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -25850,7 +26186,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BinaryOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -26155,7 +26491,7 @@ namespace CppSharp internal global::CppSharp.Parser.AST.BinaryOperatorKind opcode; internal __IntPtr lHS; internal __IntPtr rHS; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C opcodeStr; + internal global::Std.BasicString.__Internal opcodeStr; internal byte isPtrMemOp; internal byte isMultiplicativeOp; internal byte isAdditiveOp; @@ -26192,11 +26528,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CompoundAssignOperator)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -26216,7 +26552,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CompoundAssignOperator(void* native, bool skipVTables = false) @@ -26229,7 +26565,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CompoundAssignOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -26238,7 +26574,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CompoundAssignOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -26339,11 +26675,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (AbstractConditionalOperator)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -26363,7 +26699,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected AbstractConditionalOperator(void* native, bool skipVTables = false) @@ -26376,7 +26712,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AbstractConditionalOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -26385,7 +26721,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AbstractConditionalOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -26394,7 +26730,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AbstractConditionalOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.AbstractConditionalOperator.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.AbstractConditionalOperator.__Internal*) _0.__Instance); } @@ -26519,11 +26855,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ConditionalOperator)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -26543,7 +26879,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ConditionalOperator(void* native, bool skipVTables = false) @@ -26556,7 +26892,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ConditionalOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -26565,7 +26901,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ConditionalOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ConditionalOperator.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ConditionalOperator.__Internal*) _0.__Instance); } @@ -26645,11 +26981,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (BinaryConditionalOperator)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -26669,7 +27005,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected BinaryConditionalOperator(void* native, bool skipVTables = false) @@ -26682,7 +27018,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BinaryConditionalOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -26691,7 +27027,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BinaryConditionalOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.BinaryConditionalOperator.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.BinaryConditionalOperator.__Internal*) _0.__Instance); } @@ -26766,11 +27102,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (AddrLabelExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -26790,7 +27126,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected AddrLabelExpr(void* native, bool skipVTables = false) @@ -26803,7 +27139,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AddrLabelExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -26812,7 +27148,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AddrLabelExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.AddrLabelExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.AddrLabelExpr.__Internal*) _0.__Instance); } @@ -26886,11 +27222,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (StmtExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -26910,7 +27246,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected StmtExpr(void* native, bool skipVTables = false) @@ -26923,7 +27259,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.StmtExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -26932,7 +27268,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.StmtExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.StmtExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.StmtExpr.__Internal*) _0.__Instance); } @@ -27020,11 +27356,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ShuffleVectorExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -27044,7 +27380,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ShuffleVectorExpr(void* native, bool skipVTables = false) @@ -27057,7 +27393,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ShuffleVectorExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -27066,7 +27402,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ShuffleVectorExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ShuffleVectorExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ShuffleVectorExpr.__Internal*) _0.__Instance); } @@ -27153,11 +27489,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ConvertVectorExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -27177,7 +27513,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ConvertVectorExpr(void* native, bool skipVTables = false) @@ -27190,7 +27526,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ConvertVectorExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -27199,7 +27535,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ConvertVectorExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ConvertVectorExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ConvertVectorExpr.__Internal*) _0.__Instance); } @@ -27292,11 +27628,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ChooseExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -27316,7 +27652,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ChooseExpr(void* native, bool skipVTables = false) @@ -27329,7 +27665,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ChooseExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -27338,7 +27674,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ChooseExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ChooseExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ChooseExpr.__Internal*) _0.__Instance); } @@ -27492,11 +27828,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (GNUNullExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -27516,7 +27852,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected GNUNullExpr(void* native, bool skipVTables = false) @@ -27529,7 +27865,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.GNUNullExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -27538,7 +27874,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.GNUNullExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.GNUNullExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.GNUNullExpr.__Internal*) _0.__Instance); } @@ -27600,11 +27936,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (VAArgExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -27624,7 +27960,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected VAArgExpr(void* native, bool skipVTables = false) @@ -27637,7 +27973,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VAArgExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -27646,7 +27982,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VAArgExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.VAArgExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.VAArgExpr.__Internal*) _0.__Instance); } @@ -27756,11 +28092,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (InitListExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -27780,7 +28116,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected InitListExpr(void* native, bool skipVTables = false) @@ -27793,7 +28129,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.InitListExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -27802,7 +28138,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.InitListExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.InitListExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.InitListExpr.__Internal*) _0.__Instance); } @@ -28029,7 +28365,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.DesignatedInitExpr.Designator managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.DesignatedInitExpr.Designator managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -28042,11 +28390,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Designator)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -28066,7 +28414,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Designator(void* native, bool skipVTables = false) @@ -28080,7 +28428,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DesignatedInitExpr.Designator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -28088,7 +28436,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DesignatedInitExpr.Designator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.DesignatedInitExpr.Designator.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.DesignatedInitExpr.Designator.__Internal*) _0.__Instance); } @@ -28271,7 +28619,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.DesignatedInitExpr.FieldDesignator managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.DesignatedInitExpr.FieldDesignator managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -28284,11 +28644,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (FieldDesignator)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -28308,7 +28668,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected FieldDesignator(void* native, bool skipVTables = false) @@ -28322,7 +28682,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DesignatedInitExpr.FieldDesignator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -28330,7 +28690,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DesignatedInitExpr.FieldDesignator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.DesignatedInitExpr.FieldDesignator.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.DesignatedInitExpr.FieldDesignator.__Internal*) _0.__Instance); } @@ -28367,7 +28727,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.DesignatedInitExpr.ArrayOrRangeDesignator managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.DesignatedInitExpr.ArrayOrRangeDesignator managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -28380,11 +28752,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ArrayOrRangeDesignator)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -28404,7 +28776,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ArrayOrRangeDesignator(void* native, bool skipVTables = false) @@ -28418,7 +28790,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DesignatedInitExpr.ArrayOrRangeDesignator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -28426,7 +28798,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DesignatedInitExpr.ArrayOrRangeDesignator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.DesignatedInitExpr.ArrayOrRangeDesignator.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.DesignatedInitExpr.ArrayOrRangeDesignator.__Internal*) _0.__Instance); } @@ -28458,11 +28830,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DesignatedInitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -28482,7 +28854,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DesignatedInitExpr(void* native, bool skipVTables = false) @@ -28495,7 +28867,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DesignatedInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -28504,7 +28876,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DesignatedInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.DesignatedInitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.DesignatedInitExpr.__Internal*) _0.__Instance); } @@ -28630,11 +29002,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (NoInitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -28654,7 +29026,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected NoInitExpr(void* native, bool skipVTables = false) @@ -28667,7 +29039,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.NoInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -28676,7 +29048,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.NoInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.NoInitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.NoInitExpr.__Internal*) _0.__Instance); } } @@ -28723,11 +29095,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DesignatedInitUpdateExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -28747,7 +29119,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DesignatedInitUpdateExpr(void* native, bool skipVTables = false) @@ -28760,7 +29132,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DesignatedInitUpdateExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -28769,7 +29141,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DesignatedInitUpdateExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.DesignatedInitUpdateExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.DesignatedInitUpdateExpr.__Internal*) _0.__Instance); } @@ -28844,11 +29216,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ArrayInitLoopExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -28868,7 +29240,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ArrayInitLoopExpr(void* native, bool skipVTables = false) @@ -28881,7 +29253,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ArrayInitLoopExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -28890,7 +29262,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ArrayInitLoopExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ArrayInitLoopExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ArrayInitLoopExpr.__Internal*) _0.__Instance); } @@ -28963,11 +29335,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ArrayInitIndexExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -28987,7 +29359,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ArrayInitIndexExpr(void* native, bool skipVTables = false) @@ -29000,7 +29372,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ArrayInitIndexExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -29009,7 +29381,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ArrayInitIndexExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ArrayInitIndexExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ArrayInitIndexExpr.__Internal*) _0.__Instance); } } @@ -29054,11 +29426,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ImplicitValueInitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -29078,7 +29450,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ImplicitValueInitExpr(void* native, bool skipVTables = false) @@ -29091,7 +29463,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ImplicitValueInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -29100,7 +29472,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ImplicitValueInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ImplicitValueInitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ImplicitValueInitExpr.__Internal*) _0.__Instance); } } @@ -29148,11 +29520,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ParenListExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -29172,7 +29544,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ParenListExpr(void* native, bool skipVTables = false) @@ -29185,7 +29557,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ParenListExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -29194,7 +29566,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ParenListExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ParenListExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ParenListExpr.__Internal*) _0.__Instance); } @@ -29286,11 +29658,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (GenericSelectionExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -29310,7 +29682,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected GenericSelectionExpr(void* native, bool skipVTables = false) @@ -29323,7 +29695,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.GenericSelectionExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -29332,7 +29704,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.GenericSelectionExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.GenericSelectionExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.GenericSelectionExpr.__Internal*) _0.__Instance); } @@ -29488,11 +29860,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ExtVectorElementExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -29512,7 +29884,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ExtVectorElementExpr(void* native, bool skipVTables = false) @@ -29525,7 +29897,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ExtVectorElementExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -29534,7 +29906,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ExtVectorElementExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ExtVectorElementExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ExtVectorElementExpr.__Internal*) _0.__Instance); } @@ -29647,11 +30019,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (BlockExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -29671,7 +30043,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected BlockExpr(void* native, bool skipVTables = false) @@ -29684,7 +30056,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BlockExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -29693,7 +30065,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BlockExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.BlockExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.BlockExpr.__Internal*) _0.__Instance); } @@ -29768,11 +30140,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (AsTypeExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -29792,7 +30164,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected AsTypeExpr(void* native, bool skipVTables = false) @@ -29805,7 +30177,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AsTypeExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -29814,7 +30186,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AsTypeExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.AsTypeExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.AsTypeExpr.__Internal*) _0.__Instance); } @@ -29903,11 +30275,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (PseudoObjectExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -29927,7 +30299,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected PseudoObjectExpr(void* native, bool skipVTables = false) @@ -29940,7 +30312,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PseudoObjectExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -29949,7 +30321,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PseudoObjectExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.PseudoObjectExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.PseudoObjectExpr.__Internal*) _0.__Instance); } @@ -30113,11 +30485,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (AtomicExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -30137,7 +30509,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected AtomicExpr(void* native, bool skipVTables = false) @@ -30150,7 +30522,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AtomicExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -30159,7 +30531,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AtomicExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.AtomicExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.AtomicExpr.__Internal*) _0.__Instance); } @@ -30408,11 +30780,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TypoExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -30432,7 +30804,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TypoExpr(void* native, bool skipVTables = false) @@ -30445,7 +30817,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypoExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -30454,7 +30826,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypoExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.TypoExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.TypoExpr.__Internal*) _0.__Instance); } } @@ -30482,7 +30854,7 @@ namespace CppSharp internal __IntPtr sourceBitField; internal __IntPtr referencedDeclOfCallee; internal byte hasPlaceholderType; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Expr___N_std_S_allocator__S0_ arguments; + internal global::Std.Vector.__Internal arguments; internal __IntPtr callee; internal global::CppSharp.Parser.SourceLocation.__Internal rParenLoc; internal __IntPtr calleeDecl; @@ -30515,11 +30887,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXOperatorCallExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -30539,7 +30911,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXOperatorCallExpr(void* native, bool skipVTables = false) @@ -30552,7 +30924,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXOperatorCallExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -30561,7 +30933,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXOperatorCallExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -30659,7 +31031,7 @@ namespace CppSharp internal __IntPtr sourceBitField; internal __IntPtr referencedDeclOfCallee; internal byte hasPlaceholderType; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Expr___N_std_S_allocator__S0_ arguments; + internal global::Std.Vector.__Internal arguments; internal __IntPtr callee; internal global::CppSharp.Parser.SourceLocation.__Internal rParenLoc; internal __IntPtr calleeDecl; @@ -30690,11 +31062,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXMemberCallExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -30714,7 +31086,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXMemberCallExpr(void* native, bool skipVTables = false) @@ -30727,7 +31099,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXMemberCallExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -30736,7 +31108,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXMemberCallExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -30810,7 +31182,7 @@ namespace CppSharp internal __IntPtr sourceBitField; internal __IntPtr referencedDeclOfCallee; internal byte hasPlaceholderType; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Expr___N_std_S_allocator__S0_ arguments; + internal global::Std.Vector.__Internal arguments; internal __IntPtr callee; internal global::CppSharp.Parser.SourceLocation.__Internal rParenLoc; internal __IntPtr calleeDecl; @@ -30840,11 +31212,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CUDAKernelCallExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -30864,7 +31236,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CUDAKernelCallExpr(void* native, bool skipVTables = false) @@ -30877,7 +31249,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CUDAKernelCallExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -30886,7 +31258,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CUDAKernelCallExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -30979,11 +31351,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXNamedCastExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -31003,7 +31375,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXNamedCastExpr(void* native, bool skipVTables = false) @@ -31016,7 +31388,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXNamedCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -31025,7 +31397,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXNamedCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -31034,7 +31406,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXNamedCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXNamedCastExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXNamedCastExpr.__Internal*) _0.__Instance); if (_0.__castName_OwnsNativeMemory) this.CastName = _0.CastName; @@ -31164,11 +31536,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXStaticCastExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -31188,7 +31560,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXStaticCastExpr(void* native, bool skipVTables = false) @@ -31201,7 +31573,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXStaticCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -31210,7 +31582,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXStaticCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXStaticCastExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXStaticCastExpr.__Internal*) _0.__Instance); } } @@ -31268,11 +31640,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXDynamicCastExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -31292,7 +31664,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXDynamicCastExpr(void* native, bool skipVTables = false) @@ -31305,7 +31677,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXDynamicCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -31314,7 +31686,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXDynamicCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXDynamicCastExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXDynamicCastExpr.__Internal*) _0.__Instance); } @@ -31384,11 +31756,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXReinterpretCastExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -31408,7 +31780,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXReinterpretCastExpr(void* native, bool skipVTables = false) @@ -31421,7 +31793,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXReinterpretCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -31430,7 +31802,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXReinterpretCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXReinterpretCastExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXReinterpretCastExpr.__Internal*) _0.__Instance); } } @@ -31487,11 +31859,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXConstCastExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -31511,7 +31883,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXConstCastExpr(void* native, bool skipVTables = false) @@ -31524,7 +31896,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXConstCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -31533,7 +31905,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXConstCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXConstCastExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXConstCastExpr.__Internal*) _0.__Instance); } } @@ -31561,7 +31933,7 @@ namespace CppSharp internal __IntPtr sourceBitField; internal __IntPtr referencedDeclOfCallee; internal byte hasPlaceholderType; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Expr___N_std_S_allocator__S0_ arguments; + internal global::Std.Vector.__Internal arguments; internal __IntPtr callee; internal global::CppSharp.Parser.SourceLocation.__Internal rParenLoc; internal __IntPtr calleeDecl; @@ -31603,11 +31975,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (UserDefinedLiteral)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -31627,7 +31999,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected UserDefinedLiteral(void* native, bool skipVTables = false) @@ -31640,7 +32012,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UserDefinedLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -31649,7 +32021,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UserDefinedLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -31754,11 +32126,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXBoolLiteralExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -31778,7 +32150,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXBoolLiteralExpr(void* native, bool skipVTables = false) @@ -31791,7 +32163,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXBoolLiteralExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -31800,7 +32172,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXBoolLiteralExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXBoolLiteralExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXBoolLiteralExpr.__Internal*) _0.__Instance); } @@ -31872,11 +32244,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXNullPtrLiteralExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -31896,7 +32268,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXNullPtrLiteralExpr(void* native, bool skipVTables = false) @@ -31909,7 +32281,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXNullPtrLiteralExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -31918,7 +32290,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXNullPtrLiteralExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXNullPtrLiteralExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXNullPtrLiteralExpr.__Internal*) _0.__Instance); } @@ -31977,11 +32349,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXStdInitializerListExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -32001,7 +32373,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXStdInitializerListExpr(void* native, bool skipVTables = false) @@ -32014,7 +32386,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXStdInitializerListExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -32023,7 +32395,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXStdInitializerListExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXStdInitializerListExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXStdInitializerListExpr.__Internal*) _0.__Instance); } @@ -32085,11 +32457,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXTypeidExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -32109,7 +32481,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXTypeidExpr(void* native, bool skipVTables = false) @@ -32122,7 +32494,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXTypeidExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -32131,7 +32503,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXTypeidExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXTypeidExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXTypeidExpr.__Internal*) _0.__Instance); } @@ -32220,11 +32592,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (MSPropertyRefExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -32244,7 +32616,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected MSPropertyRefExpr(void* native, bool skipVTables = false) @@ -32257,7 +32629,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MSPropertyRefExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -32266,7 +32638,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MSPropertyRefExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.MSPropertyRefExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.MSPropertyRefExpr.__Internal*) _0.__Instance); } @@ -32367,11 +32739,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (MSPropertySubscriptExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -32391,7 +32763,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected MSPropertySubscriptExpr(void* native, bool skipVTables = false) @@ -32404,7 +32776,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MSPropertySubscriptExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -32413,7 +32785,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MSPropertySubscriptExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.MSPropertySubscriptExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.MSPropertySubscriptExpr.__Internal*) _0.__Instance); } @@ -32483,7 +32855,7 @@ namespace CppSharp internal __IntPtr referencedDeclOfCallee; internal byte hasPlaceholderType; internal __IntPtr exprOperand; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C uuidStr; + internal global::Std.BasicString.__Internal uuidStr; internal byte isTypeOperand; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser3AST13CXXUuidofExprC2Ev", CallingConvention = __CallingConvention.Cdecl)] @@ -32505,11 +32877,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXUuidofExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -32529,7 +32901,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXUuidofExpr(void* native, bool skipVTables = false) @@ -32542,7 +32914,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXUuidofExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -32551,7 +32923,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXUuidofExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -32657,11 +33029,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXThisExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -32681,7 +33053,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXThisExpr(void* native, bool skipVTables = false) @@ -32694,7 +33066,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXThisExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -32703,7 +33075,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXThisExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXThisExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXThisExpr.__Internal*) _0.__Instance); } @@ -32777,11 +33149,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXThrowExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -32801,7 +33173,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXThrowExpr(void* native, bool skipVTables = false) @@ -32814,7 +33186,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXThrowExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -32823,7 +33195,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXThrowExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXThrowExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXThrowExpr.__Internal*) _0.__Instance); } @@ -32910,11 +33282,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXDefaultArgExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -32934,7 +33306,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXDefaultArgExpr(void* native, bool skipVTables = false) @@ -32947,7 +33319,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXDefaultArgExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -32956,7 +33328,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXDefaultArgExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXDefaultArgExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXDefaultArgExpr.__Internal*) _0.__Instance); } @@ -33030,11 +33402,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXDefaultInitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -33054,7 +33426,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXDefaultInitExpr(void* native, bool skipVTables = false) @@ -33067,7 +33439,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXDefaultInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -33076,7 +33448,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXDefaultInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXDefaultInitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXDefaultInitExpr.__Internal*) _0.__Instance); } @@ -33150,11 +33522,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXBindTemporaryExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -33174,7 +33546,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXBindTemporaryExpr(void* native, bool skipVTables = false) @@ -33187,7 +33559,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXBindTemporaryExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -33196,7 +33568,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXBindTemporaryExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXBindTemporaryExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXBindTemporaryExpr.__Internal*) _0.__Instance); } @@ -33238,7 +33610,7 @@ namespace CppSharp internal __IntPtr sourceBitField; internal __IntPtr referencedDeclOfCallee; internal byte hasPlaceholderType; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Expr___N_std_S_allocator__S0_ arguments; + internal global::Std.Vector.__Internal arguments; internal global::CppSharp.Parser.SourceLocation.__Internal location; internal byte elidable; internal byte hadMultipleCandidates; @@ -33290,11 +33662,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXConstructExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -33314,7 +33686,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXConstructExpr(void* native, bool skipVTables = false) @@ -33327,7 +33699,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXConstructExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -33336,7 +33708,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXConstructExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -33345,7 +33717,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXConstructExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -33552,11 +33924,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXInheritedCtorInitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -33576,7 +33948,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXInheritedCtorInitExpr(void* native, bool skipVTables = false) @@ -33589,7 +33961,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXInheritedCtorInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -33598,7 +33970,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXInheritedCtorInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXInheritedCtorInitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXInheritedCtorInitExpr.__Internal*) _0.__Instance); } @@ -33693,11 +34065,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXFunctionalCastExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -33717,7 +34089,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXFunctionalCastExpr(void* native, bool skipVTables = false) @@ -33730,7 +34102,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXFunctionalCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -33739,7 +34111,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXFunctionalCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXFunctionalCastExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXFunctionalCastExpr.__Internal*) _0.__Instance); } @@ -33806,7 +34178,7 @@ namespace CppSharp internal __IntPtr sourceBitField; internal __IntPtr referencedDeclOfCallee; internal byte hasPlaceholderType; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Expr___N_std_S_allocator__S0_ arguments; + internal global::Std.Vector.__Internal arguments; internal global::CppSharp.Parser.SourceLocation.__Internal location; internal byte elidable; internal byte hadMultipleCandidates; @@ -33835,11 +34207,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXTemporaryObjectExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -33859,7 +34231,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXTemporaryObjectExpr(void* native, bool skipVTables = false) @@ -33872,7 +34244,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXTemporaryObjectExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -33881,7 +34253,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXTemporaryObjectExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -33927,7 +34299,7 @@ namespace CppSharp internal __IntPtr sourceBitField; internal __IntPtr referencedDeclOfCallee; internal byte hasPlaceholderType; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Expr___N_std_S_allocator__S0_ capture_inits; + internal global::Std.Vector.__Internal capture_inits; internal global::CppSharp.Parser.SourceLocation.__Internal captureDefaultLoc; internal uint capture_size; internal global::CppSharp.Parser.SourceRange.__Internal introducerRange; @@ -33969,11 +34341,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (LambdaExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -33993,7 +34365,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected LambdaExpr(void* native, bool skipVTables = false) @@ -34006,7 +34378,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.LambdaExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -34015,7 +34387,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.LambdaExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -34230,11 +34602,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXScalarValueInitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -34254,7 +34626,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXScalarValueInitExpr(void* native, bool skipVTables = false) @@ -34267,7 +34639,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXScalarValueInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -34276,7 +34648,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXScalarValueInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXScalarValueInitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXScalarValueInitExpr.__Internal*) _0.__Instance); } @@ -34317,7 +34689,7 @@ namespace CppSharp internal __IntPtr sourceBitField; internal __IntPtr referencedDeclOfCallee; internal byte hasPlaceholderType; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Expr___N_std_S_allocator__S0_ placement_arguments; + internal global::Std.Vector.__Internal placement_arguments; internal __IntPtr operatorNew; internal __IntPtr operatorDelete; internal global::CppSharp.Parser.AST.QualifiedType.__Internal allocatedType; @@ -34371,11 +34743,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXNewExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -34395,7 +34767,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXNewExpr(void* native, bool skipVTables = false) @@ -34408,7 +34780,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXNewExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -34417,7 +34789,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXNewExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -34709,11 +35081,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXDeleteExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -34733,7 +35105,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXDeleteExpr(void* native, bool skipVTables = false) @@ -34746,7 +35118,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXDeleteExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -34755,7 +35127,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXDeleteExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXDeleteExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXDeleteExpr.__Internal*) _0.__Instance); } @@ -34890,11 +35262,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXPseudoDestructorExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -34914,7 +35286,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXPseudoDestructorExpr(void* native, bool skipVTables = false) @@ -34927,7 +35299,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXPseudoDestructorExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -34936,7 +35308,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXPseudoDestructorExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXPseudoDestructorExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXPseudoDestructorExpr.__Internal*) _0.__Instance); } @@ -35090,11 +35462,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TypeTraitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -35114,7 +35486,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TypeTraitExpr(void* native, bool skipVTables = false) @@ -35127,7 +35499,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypeTraitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -35136,7 +35508,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypeTraitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.TypeTraitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.TypeTraitExpr.__Internal*) _0.__Instance); } @@ -35210,11 +35582,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ArrayTypeTraitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -35234,7 +35606,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ArrayTypeTraitExpr(void* native, bool skipVTables = false) @@ -35247,7 +35619,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ArrayTypeTraitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -35256,7 +35628,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ArrayTypeTraitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ArrayTypeTraitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ArrayTypeTraitExpr.__Internal*) _0.__Instance); } @@ -35345,11 +35717,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ExpressionTraitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -35369,7 +35741,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ExpressionTraitExpr(void* native, bool skipVTables = false) @@ -35382,7 +35754,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ExpressionTraitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -35391,7 +35763,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ExpressionTraitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ExpressionTraitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ExpressionTraitExpr.__Internal*) _0.__Instance); } @@ -35479,7 +35851,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.OverloadExpr.FindResult managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.OverloadExpr.FindResult managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -35492,11 +35876,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (FindResult)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -35516,7 +35900,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected FindResult(void* native, bool skipVTables = false) @@ -35530,7 +35914,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.OverloadExpr.FindResult.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -35538,7 +35922,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.OverloadExpr.FindResult.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.OverloadExpr.FindResult.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.OverloadExpr.FindResult.__Internal*) _0.__Instance); } @@ -35570,11 +35954,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (OverloadExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -35594,7 +35978,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected OverloadExpr(void* native, bool skipVTables = false) @@ -35607,7 +35991,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.OverloadExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -35616,7 +36000,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.OverloadExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -35625,7 +36009,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.OverloadExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.OverloadExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.OverloadExpr.__Internal*) _0.__Instance); } @@ -35789,11 +36173,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (UnresolvedLookupExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -35813,7 +36197,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected UnresolvedLookupExpr(void* native, bool skipVTables = false) @@ -35826,7 +36210,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnresolvedLookupExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -35835,7 +36219,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnresolvedLookupExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.UnresolvedLookupExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.UnresolvedLookupExpr.__Internal*) _0.__Instance); } @@ -35913,11 +36297,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DependentScopeDeclRefExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -35937,7 +36321,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DependentScopeDeclRefExpr(void* native, bool skipVTables = false) @@ -35950,7 +36334,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DependentScopeDeclRefExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -35959,7 +36343,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DependentScopeDeclRefExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.DependentScopeDeclRefExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.DependentScopeDeclRefExpr.__Internal*) _0.__Instance); } @@ -36098,11 +36482,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ExprWithCleanups)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -36122,7 +36506,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ExprWithCleanups(void* native, bool skipVTables = false) @@ -36135,7 +36519,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ExprWithCleanups.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -36144,7 +36528,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ExprWithCleanups.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ExprWithCleanups.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ExprWithCleanups.__Internal*) _0.__Instance); } @@ -36198,7 +36582,7 @@ namespace CppSharp internal __IntPtr sourceBitField; internal __IntPtr referencedDeclOfCallee; internal byte hasPlaceholderType; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Expr___N_std_S_allocator__S0_ arguments; + internal global::Std.Vector.__Internal arguments; internal global::CppSharp.Parser.SourceLocation.__Internal lParenLoc; internal global::CppSharp.Parser.SourceLocation.__Internal rParenLoc; internal global::CppSharp.Parser.AST.QualifiedType.__Internal typeAsWritten; @@ -36236,11 +36620,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXUnresolvedConstructExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -36260,7 +36644,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXUnresolvedConstructExpr(void* native, bool skipVTables = false) @@ -36273,7 +36657,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXUnresolvedConstructExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -36282,7 +36666,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXUnresolvedConstructExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -36455,11 +36839,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXDependentScopeMemberExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -36479,7 +36863,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXDependentScopeMemberExpr(void* native, bool skipVTables = false) @@ -36492,7 +36876,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXDependentScopeMemberExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -36501,7 +36885,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXDependentScopeMemberExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXDependentScopeMemberExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXDependentScopeMemberExpr.__Internal*) _0.__Instance); } @@ -36734,11 +37118,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (UnresolvedMemberExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -36758,7 +37142,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected UnresolvedMemberExpr(void* native, bool skipVTables = false) @@ -36771,7 +37155,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnresolvedMemberExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -36780,7 +37164,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnresolvedMemberExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.UnresolvedMemberExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.UnresolvedMemberExpr.__Internal*) _0.__Instance); } @@ -36921,11 +37305,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXNoexceptExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -36945,7 +37329,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXNoexceptExpr(void* native, bool skipVTables = false) @@ -36958,7 +37342,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXNoexceptExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -36967,7 +37351,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXNoexceptExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXNoexceptExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXNoexceptExpr.__Internal*) _0.__Instance); } @@ -37041,11 +37425,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (PackExpansionExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -37065,7 +37449,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected PackExpansionExpr(void* native, bool skipVTables = false) @@ -37078,7 +37462,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PackExpansionExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -37087,7 +37471,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PackExpansionExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.PackExpansionExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.PackExpansionExpr.__Internal*) _0.__Instance); } @@ -37165,11 +37549,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (SizeOfPackExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -37189,7 +37573,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected SizeOfPackExpr(void* native, bool skipVTables = false) @@ -37202,7 +37586,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SizeOfPackExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -37211,7 +37595,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SizeOfPackExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.SizeOfPackExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.SizeOfPackExpr.__Internal*) _0.__Instance); } @@ -37337,11 +37721,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (SubstNonTypeTemplateParmExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -37361,7 +37745,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected SubstNonTypeTemplateParmExpr(void* native, bool skipVTables = false) @@ -37374,7 +37758,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SubstNonTypeTemplateParmExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -37383,7 +37767,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SubstNonTypeTemplateParmExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.SubstNonTypeTemplateParmExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.SubstNonTypeTemplateParmExpr.__Internal*) _0.__Instance); } @@ -37457,11 +37841,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (SubstNonTypeTemplateParmPackExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -37481,7 +37865,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected SubstNonTypeTemplateParmPackExpr(void* native, bool skipVTables = false) @@ -37494,7 +37878,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SubstNonTypeTemplateParmPackExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -37503,7 +37887,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SubstNonTypeTemplateParmPackExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.SubstNonTypeTemplateParmPackExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.SubstNonTypeTemplateParmPackExpr.__Internal*) _0.__Instance); } @@ -37578,11 +37962,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (FunctionParmPackExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -37602,7 +37986,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected FunctionParmPackExpr(void* native, bool skipVTables = false) @@ -37615,7 +37999,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FunctionParmPackExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -37624,7 +38008,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FunctionParmPackExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.FunctionParmPackExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.FunctionParmPackExpr.__Internal*) _0.__Instance); } @@ -37704,7 +38088,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.MaterializeTemporaryExpr.ExtraState managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.MaterializeTemporaryExpr.ExtraState managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -37717,11 +38113,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ExtraState)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -37741,7 +38137,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ExtraState(void* native, bool skipVTables = false) @@ -37755,7 +38151,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MaterializeTemporaryExpr.ExtraState.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -37763,7 +38159,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MaterializeTemporaryExpr.ExtraState.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.MaterializeTemporaryExpr.ExtraState.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.MaterializeTemporaryExpr.ExtraState.__Internal*) _0.__Instance); } @@ -37795,11 +38191,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (MaterializeTemporaryExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -37819,7 +38215,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected MaterializeTemporaryExpr(void* native, bool skipVTables = false) @@ -37832,7 +38228,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MaterializeTemporaryExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -37841,7 +38237,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MaterializeTemporaryExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.MaterializeTemporaryExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.MaterializeTemporaryExpr.__Internal*) _0.__Instance); } @@ -37948,11 +38344,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXFoldExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -37972,7 +38368,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXFoldExpr(void* native, bool skipVTables = false) @@ -37985,7 +38381,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXFoldExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -37994,7 +38390,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXFoldExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXFoldExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXFoldExpr.__Internal*) _0.__Instance); } @@ -38165,11 +38561,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CoroutineSuspendExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -38189,7 +38585,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CoroutineSuspendExpr(void* native, bool skipVTables = false) @@ -38202,7 +38598,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoroutineSuspendExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -38211,7 +38607,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoroutineSuspendExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -38220,7 +38616,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoroutineSuspendExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CoroutineSuspendExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CoroutineSuspendExpr.__Internal*) _0.__Instance); } @@ -38361,11 +38757,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CoawaitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -38385,7 +38781,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CoawaitExpr(void* native, bool skipVTables = false) @@ -38398,7 +38794,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoawaitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -38407,7 +38803,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoawaitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CoawaitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CoawaitExpr.__Internal*) _0.__Instance); } @@ -38482,11 +38878,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DependentCoawaitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -38506,7 +38902,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DependentCoawaitExpr(void* native, bool skipVTables = false) @@ -38519,7 +38915,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DependentCoawaitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -38528,7 +38924,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DependentCoawaitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.DependentCoawaitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.DependentCoawaitExpr.__Internal*) _0.__Instance); } @@ -38621,11 +39017,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CoyieldExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -38645,7 +39041,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CoyieldExpr(void* native, bool skipVTables = false) @@ -38658,7 +39054,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoyieldExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -38667,7 +39063,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoyieldExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CoyieldExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CoyieldExpr.__Internal*) _0.__Instance); } @@ -38713,7 +39109,7 @@ namespace CppSharp [StructLayout(LayoutKind.Sequential, Size = 168)] public partial struct __Internal { - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C ABI; + internal global::Std.BasicString.__Internal ABI; internal global::CppSharp.Parser.ParserIntType char16Type; internal global::CppSharp.Parser.ParserIntType char32Type; internal global::CppSharp.Parser.ParserIntType int64Type; @@ -38767,7 +39163,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.ParserTargetInfo managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.ParserTargetInfo managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -38780,11 +39188,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ParserTargetInfo)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -38804,7 +39212,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ParserTargetInfo(void* native, bool skipVTables = false) @@ -38818,7 +39226,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.ParserTargetInfo.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -38826,7 +39234,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.ParserTargetInfo.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -39427,7 +39835,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.Parser managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.Parser managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -39440,11 +39860,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Parser)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -39464,7 +39884,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Parser(void* native, bool skipVTables = false) @@ -39477,20 +39897,21 @@ namespace CppSharp public unsafe partial class CppParserOptions : IDisposable { - [StructLayout(LayoutKind.Sequential, Size = 232)] + [StructLayout(LayoutKind.Sequential, Size = 256)] public partial struct __Internal { - internal global::Std.Vector.__Internalc__N_std_S_vector____N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C___N_std_S_allocator__S0_ Arguments; - internal global::Std.Vector.__Internalc__N_std_S_vector____N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C___N_std_S_allocator__S0_ CompilationOptions; - internal global::Std.Vector.__Internalc__N_std_S_vector____N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C___N_std_S_allocator__S0_ SourceFiles; - internal global::Std.Vector.__Internalc__N_std_S_vector____N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C___N_std_S_allocator__S0_ IncludeDirs; - internal global::Std.Vector.__Internalc__N_std_S_vector____N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C___N_std_S_allocator__S0_ SystemIncludeDirs; - internal global::Std.Vector.__Internalc__N_std_S_vector____N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C___N_std_S_allocator__S0_ Defines; - internal global::Std.Vector.__Internalc__N_std_S_vector____N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C___N_std_S_allocator__S0_ Undefines; - internal global::Std.Vector.__Internalc__N_std_S_vector____N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C___N_std_S_allocator__S0_ SupportedStdTypes; + internal global::Std.Vector.__Internal Arguments; + internal global::Std.Vector.__Internal CompilationOptions; + internal global::Std.Vector.__Internal SourceFiles; + internal global::Std.Vector.__Internal IncludeDirs; + internal global::Std.Vector.__Internal SystemIncludeDirs; + internal global::Std.Vector.__Internal Defines; + internal global::Std.Vector.__Internal Undefines; + internal global::Std.Vector.__Internal SupportedStdTypes; + internal global::Std.Vector.__Internal SupportedFunctionTemplates; internal __IntPtr ASTContext; internal int toolSetToUse; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C targetTriple; + internal global::Std.BasicString.__Internal targetTriple; internal byte noStandardIncludes; internal byte noBuiltinIncludes; internal byte microsoftMode; @@ -39499,7 +39920,7 @@ namespace CppSharp internal byte skipPrivateDeclarations; internal byte skipLayoutInfo; internal byte skipFunctionBodies; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C clangVersion; + internal global::Std.BasicString.__Internal clangVersion; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser16CppParserOptionsC2Ev", CallingConvention = __CallingConvention.Cdecl)] internal static extern void ctor(__IntPtr __instance); @@ -39582,6 +40003,15 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser16CppParserOptions22clearSupportedStdTypesEv", CallingConvention = __CallingConvention.Cdecl)] internal static extern void ClearSupportedStdTypes(__IntPtr __instance); + [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser16CppParserOptions29getSupportedFunctionTemplatesEj", CallingConvention = __CallingConvention.Cdecl)] + internal static extern __IntPtr GetSupportedFunctionTemplates(__IntPtr __instance, uint i); + + [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser16CppParserOptions29addSupportedFunctionTemplatesEPKc", CallingConvention = __CallingConvention.Cdecl)] + internal static extern void AddSupportedFunctionTemplates(__IntPtr __instance, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(CppSharp.Runtime.UTF8Marshaller))] string s); + + [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser16CppParserOptions31clearSupportedFunctionTemplatesEv", CallingConvention = __CallingConvention.Cdecl)] + internal static extern void ClearSupportedFunctionTemplates(__IntPtr __instance); + [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser16CppParserOptions15getClangVersionEv", CallingConvention = __CallingConvention.Cdecl)] internal static extern void GetClangVersion(__IntPtr @return, __IntPtr __instance); @@ -39608,11 +40038,26 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser16CppParserOptions25getSupportedStdTypesCountEv", CallingConvention = __CallingConvention.Cdecl)] internal static extern uint GetSupportedStdTypesCount(__IntPtr __instance); + + [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser16CppParserOptions34getSupportedFunctionTemplatesCountEv", CallingConvention = __CallingConvention.Cdecl)] + internal static extern uint GetSupportedFunctionTemplatesCount(__IntPtr __instance); } public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.CppParserOptions managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.CppParserOptions managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -39625,11 +40070,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CppParserOptions)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -39649,7 +40094,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CppParserOptions(void* native, bool skipVTables = false) @@ -39663,7 +40108,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.CppParserOptions.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -39671,7 +40116,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.CppParserOptions.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -39826,6 +40271,22 @@ namespace CppSharp __Internal.ClearSupportedStdTypes(__Instance); } + public string GetSupportedFunctionTemplates(uint i) + { + var __ret = __Internal.GetSupportedFunctionTemplates(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + } + + public void AddSupportedFunctionTemplates(string s) + { + __Internal.AddSupportedFunctionTemplates(__Instance, s); + } + + public void ClearSupportedFunctionTemplates() + { + __Internal.ClearSupportedFunctionTemplates(__Instance); + } + public global::CppSharp.Parser.AST.ASTContext ASTContext { get @@ -39975,7 +40436,7 @@ namespace CppSharp { get { - var __ret = new global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C(); + var __ret = new global::Std.BasicString.__Internal(); __Internal.GetClangVersion(new IntPtr(&__ret), __Instance); var __basicStringRet0 = global::Std.BasicString, global::Std.Allocator>.__CreateInstance(new __IntPtr(&__ret)); var __retString0 = global::Std.BasicStringExtensions.Data(__basicStringRet0); @@ -40055,6 +40516,15 @@ namespace CppSharp return __ret; } } + + public uint SupportedFunctionTemplatesCount + { + get + { + var __ret = __Internal.GetSupportedFunctionTemplatesCount(__Instance); + return __ret; + } + } } public unsafe partial class CppLinkerOptions : IDisposable @@ -40062,9 +40532,9 @@ namespace CppSharp [StructLayout(LayoutKind.Sequential, Size = 72)] public partial struct __Internal { - internal global::Std.Vector.__Internalc__N_std_S_vector____N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C___N_std_S_allocator__S0_ Arguments; - internal global::Std.Vector.__Internalc__N_std_S_vector____N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C___N_std_S_allocator__S0_ LibraryDirs; - internal global::Std.Vector.__Internalc__N_std_S_vector____N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C___N_std_S_allocator__S0_ Libraries; + internal global::Std.Vector.__Internal Arguments; + internal global::Std.Vector.__Internal LibraryDirs; + internal global::Std.Vector.__Internal Libraries; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser16CppLinkerOptionsC2Ev", CallingConvention = __CallingConvention.Cdecl)] internal static extern void ctor(__IntPtr __instance); @@ -40114,7 +40584,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.CppLinkerOptions managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.CppLinkerOptions managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -40127,11 +40609,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CppLinkerOptions)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -40151,7 +40633,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CppLinkerOptions(void* native, bool skipVTables = false) @@ -40165,7 +40647,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.CppLinkerOptions.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -40173,7 +40655,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.CppLinkerOptions.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -40281,8 +40763,8 @@ namespace CppSharp [StructLayout(LayoutKind.Sequential, Size = 32)] public partial struct __Internal { - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C fileName; - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C message; + internal global::Std.BasicString.__Internal fileName; + internal global::Std.BasicString.__Internal message; internal global::CppSharp.Parser.ParserDiagnosticLevel level; internal int lineNumber; internal int columnNumber; @@ -40299,7 +40781,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.ParserDiagnostic managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.ParserDiagnostic managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -40312,11 +40806,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ParserDiagnostic)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -40336,7 +40830,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ParserDiagnostic(void* native, bool skipVTables = false) @@ -40350,7 +40844,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.ParserDiagnostic.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -40358,7 +40852,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.ParserDiagnostic.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -40459,8 +40953,8 @@ namespace CppSharp public partial struct __Internal { internal global::CppSharp.Parser.ParserResultKind kind; - internal global::Std.Vector.__Internalc__N_std_S_vector____N_CppSharp_N_CppParser_S_ParserDiagnostic___N_std_S_allocator__S0_ Diagnostics; - internal global::Std.Vector.__Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_NativeLibrary___N_std_S_allocator__S0_ Libraries; + internal global::Std.Vector.__Internal Diagnostics; + internal global::Std.Vector.__Internal Libraries; internal __IntPtr targetInfo; [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser", EntryPoint = "_ZN8CppSharp9CppParser12ParserResultC2Ev", CallingConvention = __CallingConvention.Cdecl)] @@ -40499,7 +40993,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.ParserResult managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.ParserResult managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -40512,11 +41018,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ParserResult)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -40536,7 +41042,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ParserResult(void* native, bool skipVTables = false) @@ -40550,7 +41056,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.ParserResult.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -40558,7 +41064,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.ParserResult.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -40700,7 +41206,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.ClangParser managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.ClangParser managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -40713,11 +41231,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ClangParser)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -40737,7 +41255,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ClangParser(void* native, bool skipVTables = false) @@ -40751,14 +41269,14 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.ClangParser.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } public ClangParser(global::CppSharp.Parser.ClangParser _0) { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.ClangParser.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.ClangParser.__Internal*) __Instance) = *((global::CppSharp.Parser.ClangParser.__Internal*) _0.__Instance); } @@ -40839,13 +41357,35 @@ namespace CppSharp namespace Std { - namespace pair + namespace RbTree + { + namespace RbTreeImpl + { + [StructLayout(LayoutKind.Sequential, Size = 48)] + public unsafe partial struct __Internalc__N_std_S__Rb_tree____N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C___N_std_S_pair__1S0_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S__Select1st__S3____N_std_S_less__S0____N_std_S_allocator__S3__S__Rb_tree_impl__S7__Vb1 + { + internal global::Std.Less.__Internal _M_key_compare; + internal global::Std.RbTreeNodeBase.__Internal _M_header; + internal ulong _M_node_count; + } + } + + [StructLayout(LayoutKind.Sequential, Size = 48)] + public unsafe partial struct __Internalc__N_std_S__Rb_tree____N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C___N_std_S_pair__1S0_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S__Select1st__S3____N_std_S_less__S0____N_std_S_allocator__S3_ + { + internal global::Std.RbTree.RbTreeImpl.__Internalc__N_std_S__Rb_tree____N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C___N_std_S_pair__1S0_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S__Select1st__S3____N_std_S_less__S0____N_std_S_allocator__S3__S__Rb_tree_impl__S7__Vb1 _M_impl; + } + } + +} +namespace Std +{ + namespace Map { - [StructLayout(LayoutKind.Sequential, Size = 16)] - public unsafe partial struct __Internalc__N_std_S_pair__1__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C____N_CppSharp_N_CppParser_N_AST_S_Declaration + [StructLayout(LayoutKind.Sequential, Size = 48)] + public unsafe partial struct __Internalc__N_std_S_map____N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_less__S0____N_std_S_allocator____N_std_S_pair__1S0__S3_ { - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C first; - internal __IntPtr second; + internal global::Std.RbTree.__Internalc__N_std_S__Rb_tree____N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C___N_std_S_pair__1S0_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S__Select1st__S3____N_std_S_less__S0____N_std_S_allocator__S3_ _M_t; } } } diff --git a/src/CppParser/Bindings/CSharp/x86_64-linux-gnu/Std.cs b/src/CppParser/Bindings/CSharp/x86_64-linux-gnu/Std.cs index aeb0a3c4..66048f8d 100644 --- a/src/CppParser/Bindings/CSharp/x86_64-linux-gnu/Std.cs +++ b/src/CppParser/Bindings/CSharp/x86_64-linux-gnu/Std.cs @@ -34,7 +34,19 @@ namespace Std { public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary> NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary>(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary> NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary>(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::Std.Allocator<_Tp> managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::Std.Allocator<_Tp> managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -47,11 +59,11 @@ namespace Std { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Allocator<_Tp>)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -71,7 +83,7 @@ namespace Std : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Allocator(void* native, bool skipVTables = false) @@ -88,7 +100,7 @@ namespace Std { __Instance = Marshal.AllocHGlobal(sizeof(global::Std.Allocator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); global::Std.Allocator.__Internal.ctorc__N_std_S_allocator__C(__Instance); return; } @@ -130,241 +142,7 @@ namespace Std namespace Vector { [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_BlockContentComment___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Namespace___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Enumeration___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Function___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Class___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Template___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TypedefDecl___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TypeAlias___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Variable___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Friend___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_BaseClassSpecifier___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Field___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Method___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Parameter___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_FunctionTemplateSpecialization___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_TemplateArgument___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_AccessSpecifierDecl___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_VFTableInfo___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_VTableComponent___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_LayoutField___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_LayoutBase___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Enumeration_S_Item___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector____N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_ClassTemplateSpecialization___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_ExpressionObsolete___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_VarTemplateSpecialization___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_MacroDefinition___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TranslationUnit___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Stmt___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Expr___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_InlineContentComment___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_BlockCommandComment_S_Argument___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector__i___N_std_S_allocator__i - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_VerbatimBlockLineComment___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_InlineCommandComment_S_Argument___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_HTMLStartTagComment_S_Attribute___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector____N_CppSharp_N_CppParser_S_ParserDiagnostic___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_NativeLibrary___N_std_S_allocator__S0_ + public unsafe partial struct __Internal { internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; } @@ -373,241 +151,7 @@ namespace Std namespace VectorBase { [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base_____N_CppSharp_N_CppParser_N_AST_S_BlockContentComment___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base_____N_CppSharp_N_CppParser_N_AST_S_Template___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base_____N_CppSharp_N_CppParser_N_AST_S_TypedefDecl___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base_____N_CppSharp_N_CppParser_N_AST_S_TypeAlias___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base_____N_CppSharp_N_CppParser_N_AST_S_Variable___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base_____N_CppSharp_N_CppParser_N_AST_S_Friend___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base_____N_CppSharp_N_CppParser_N_AST_S_BaseClassSpecifier___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base_____N_CppSharp_N_CppParser_N_AST_S_Field___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base_____N_CppSharp_N_CppParser_N_AST_S_Parameter___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base_____N_CppSharp_N_CppParser_N_AST_S_FunctionTemplateSpecialization___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base____N_CppSharp_N_CppParser_N_AST_S_TemplateArgument___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base_____N_CppSharp_N_CppParser_N_AST_S_Method___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base_____N_CppSharp_N_CppParser_N_AST_S_AccessSpecifierDecl___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base____N_CppSharp_N_CppParser_N_AST_S_VTableComponent___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base____N_CppSharp_N_CppParser_N_AST_S_VFTableInfo___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base____N_CppSharp_N_CppParser_N_AST_S_LayoutField___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base____N_CppSharp_N_CppParser_N_AST_S_LayoutBase___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base_____N_CppSharp_N_CppParser_N_AST_S_Class___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base_____N_CppSharp_N_CppParser_N_AST_S_Function___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base_____N_CppSharp_N_CppParser_N_AST_S_Enumeration_S_Item___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base_____N_CppSharp_N_CppParser_N_AST_S_Enumeration___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base_____N_CppSharp_N_CppParser_N_AST_S_Namespace___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base____N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base_____N_CppSharp_N_CppParser_N_AST_S_ClassTemplateSpecialization___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base_____N_CppSharp_N_CppParser_N_AST_S_ExpressionObsolete___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base_____N_CppSharp_N_CppParser_N_AST_S_VarTemplateSpecialization___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base_____N_CppSharp_N_CppParser_N_AST_S_MacroDefinition___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base_____N_CppSharp_N_CppParser_N_AST_S_TranslationUnit___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base_____N_CppSharp_N_CppParser_N_AST_S_Stmt___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base_____N_CppSharp_N_CppParser_N_AST_S_Expr___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base_____N_CppSharp_N_CppParser_N_AST_S_InlineContentComment___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base____N_CppSharp_N_CppParser_N_AST_S_BlockCommandComment_S_Argument___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base__i___N_std_S_allocator__i - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base_____N_CppSharp_N_CppParser_N_AST_S_VerbatimBlockLineComment___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base____N_CppSharp_N_CppParser_N_AST_S_InlineCommandComment_S_Argument___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base____N_CppSharp_N_CppParser_N_AST_S_HTMLStartTagComment_S_Attribute___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base____N_CppSharp_N_CppParser_S_ParserDiagnostic___N_std_S_allocator__S0_ - { - internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; - } - - [StructLayout(LayoutKind.Sequential, Size = 24)] - public unsafe partial struct __Internalc__N_std_S__Vector_base_____N_CppSharp_N_CppParser_N_AST_S_NativeLibrary___N_std_S_allocator__S0_ + public unsafe partial struct __Internal { internal global::Std.VectorBase.VectorImpl.__Internal _M_impl; } @@ -655,26 +199,6 @@ namespace Std { } - namespace RbTree - { - namespace RbTreeImpl - { - [StructLayout(LayoutKind.Sequential, Size = 48)] - public unsafe partial struct __Internal - { - internal global::Std.Less.__Internal _M_key_compare; - internal global::Std.RbTreeNodeBase.__Internal _M_header; - internal ulong _M_node_count; - } - } - - [StructLayout(LayoutKind.Sequential, Size = 48)] - public unsafe partial struct __Internalc__N_std_S__Rb_tree____N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C___N_std_S_pair__1S0_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S__Select1st__S3____N_std_S_less__S0____N_std_S_allocator__S3_ - { - internal global::Std.RbTree.RbTreeImpl.__Internal _M_impl; - } - } - public unsafe partial class RbTreeNodeBase { [StructLayout(LayoutKind.Sequential, Size = 32)] @@ -694,14 +218,6 @@ namespace GnuCxx namespace Std { - namespace Map - { - [StructLayout(LayoutKind.Sequential, Size = 48)] - public unsafe partial struct __Internalc__N_std_S_map____N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_less__S0____N_std_S_allocator____N_std_S_pair__1S0__S3_ - { - internal global::Std.RbTree.__Internalc__N_std_S__Rb_tree____N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C___N_std_S_pair__1S0_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S__Select1st__S3____N_std_S_less__S0____N_std_S_allocator__S3_ _M_t; - } - } } namespace Std @@ -722,7 +238,19 @@ namespace Std { public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary> NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary>(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary> NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary>(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::Std.CharTraits<_CharT> managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::Std.CharTraits<_CharT> managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -735,11 +263,11 @@ namespace Std { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CharTraits<_CharT>)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -759,7 +287,7 @@ namespace Std : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CharTraits(void* native, bool skipVTables = false) @@ -794,7 +322,7 @@ namespace Std namespace BasicString { [StructLayout(LayoutKind.Sequential, Size = 8)] - public unsafe partial struct __Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C + public unsafe partial struct __Internal { internal global::Std.BasicString.AllocHider.__Internal _M_dataplus; @@ -820,7 +348,19 @@ namespace Std { public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary> NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary>(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary> NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary>(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::Std.BasicString<_CharT, _Traits, _Alloc> managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::Std.BasicString<_CharT, _Traits, _Alloc> managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -833,31 +373,31 @@ namespace Std { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (BasicString<_CharT, _Traits, _Alloc>)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } - internal static BasicString<_CharT, _Traits, _Alloc> __CreateInstance(global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C native, bool skipVTables = false) + internal static BasicString<_CharT, _Traits, _Alloc> __CreateInstance(global::Std.BasicString.__Internal native, bool skipVTables = false) { return new BasicString<_CharT, _Traits, _Alloc>(native, skipVTables); } - private static void* __CopyValue(global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C native) + private static void* __CopyValue(global::Std.BasicString.__Internal native) { - var ret = Marshal.AllocHGlobal(sizeof(global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C)); - *(global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C*) ret = native; + var ret = Marshal.AllocHGlobal(sizeof(global::Std.BasicString.__Internal)); + *(global::Std.BasicString.__Internal*) ret = native; return ret.ToPointer(); } - private BasicString(global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C native, bool skipVTables = false) + private BasicString(global::Std.BasicString.__Internal native, bool skipVTables = false) : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected BasicString(void* native, bool skipVTables = false) @@ -874,10 +414,10 @@ namespace Std var ___Alloc = typeof(_Alloc); if (___CharT.IsAssignableFrom(typeof(sbyte)) && ___Traits.IsAssignableFrom(typeof(global::Std.CharTraits)) && ___Alloc.IsAssignableFrom(typeof(global::Std.Allocator))) { - __Instance = Marshal.AllocHGlobal(sizeof(global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C)); + __Instance = Marshal.AllocHGlobal(sizeof(global::Std.BasicString.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; - global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C.ctorc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C(__Instance); + __RecordNativeToManagedMapping(__Instance, this); + global::Std.BasicString.__Internal.ctorc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C(__Instance); return; } throw new ArgumentOutOfRangeException("_CharT, _Traits, _Alloc", string.Join(", ", new[] { typeof(_CharT).FullName, typeof(_Traits).FullName, typeof(_Alloc).FullName }), "global::Std.BasicString<_CharT, _Traits, _Alloc> maps a C++ template class and therefore it only supports a limited set of types and their subclasses: , global::Std.Allocator>."); @@ -903,7 +443,7 @@ namespace Std var ___Alloc = typeof(_Alloc); if (___CharT.IsAssignableFrom(typeof(sbyte)) && ___Traits.IsAssignableFrom(typeof(global::Std.CharTraits)) && ___Alloc.IsAssignableFrom(typeof(global::Std.Allocator))) { - global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C.dtorc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C(__Instance); + global::Std.BasicString.__Internal.dtorc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C(__Instance); return; } throw new ArgumentOutOfRangeException("_CharT, _Traits, _Alloc", string.Join(", ", new[] { typeof(_CharT).FullName, typeof(_Traits).FullName, typeof(_Alloc).FullName }), "global::Std.BasicString<_CharT, _Traits, _Alloc> maps a C++ template class and therefore it only supports a limited set of types and their subclasses: , global::Std.Allocator>."); @@ -945,7 +485,3 @@ namespace Std namespace Std { } - -namespace Std -{ -} diff --git a/src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/CppSharp.CppParser.cs b/src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/CppSharp.CppParser.cs index 921e4b93..85846584 100644 --- a/src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/CppSharp.CppParser.cs +++ b/src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/CppSharp.CppParser.cs @@ -103,7 +103,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.NativeLibrary managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.NativeLibrary managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -116,11 +128,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (NativeLibrary)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -140,7 +152,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected NativeLibrary(void* native, bool skipVTables = false) @@ -154,7 +166,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.NativeLibrary.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -162,7 +174,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.NativeLibrary.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -283,7 +295,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.Comment managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.Comment managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -296,11 +320,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Comment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -320,7 +344,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Comment(void* native, bool skipVTables = false) @@ -334,7 +358,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Comment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, kind); } @@ -342,7 +366,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Comment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.Comment.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.Comment.__Internal*) _0.__Instance); } @@ -409,11 +433,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (BlockContentComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -433,7 +457,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected BlockContentComment(void* native, bool skipVTables = false) @@ -446,7 +470,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BlockContentComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -455,7 +479,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BlockContentComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, Kind); } @@ -464,7 +488,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BlockContentComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.BlockContentComment.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.BlockContentComment.__Internal*) _0.__Instance); } @@ -513,11 +537,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (FullComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -537,7 +561,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected FullComment(void* native, bool skipVTables = false) @@ -550,7 +574,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FullComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -559,7 +583,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FullComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -639,11 +663,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (InlineContentComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -663,7 +687,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected InlineContentComment(void* native, bool skipVTables = false) @@ -676,7 +700,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.InlineContentComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -685,7 +709,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.InlineContentComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, Kind); } @@ -694,7 +718,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.InlineContentComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.InlineContentComment.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.InlineContentComment.__Internal*) _0.__Instance); } @@ -757,11 +781,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ParagraphComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -781,7 +805,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ParagraphComment(void* native, bool skipVTables = false) @@ -794,7 +818,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ParagraphComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -803,7 +827,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ParagraphComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -923,7 +947,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.BlockCommandComment.Argument managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.BlockCommandComment.Argument managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -936,11 +972,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Argument)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -960,7 +996,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Argument(void* native, bool skipVTables = false) @@ -974,7 +1010,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BlockCommandComment.Argument.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -982,7 +1018,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BlockCommandComment.Argument.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -1033,11 +1069,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (BlockCommandComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -1057,7 +1093,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected BlockCommandComment(void* native, bool skipVTables = false) @@ -1070,7 +1106,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BlockCommandComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -1079,7 +1115,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BlockCommandComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, Kind); } @@ -1088,7 +1124,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BlockCommandComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -1212,11 +1248,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ParamCommandComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -1236,7 +1272,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ParamCommandComment(void* native, bool skipVTables = false) @@ -1249,7 +1285,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ParamCommandComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -1258,7 +1294,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ParamCommandComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -1349,11 +1385,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TParamCommandComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -1373,7 +1409,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TParamCommandComment(void* native, bool skipVTables = false) @@ -1386,7 +1422,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TParamCommandComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -1395,7 +1431,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TParamCommandComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -1474,11 +1510,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (VerbatimBlockLineComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -1498,7 +1534,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected VerbatimBlockLineComment(void* native, bool skipVTables = false) @@ -1511,7 +1547,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VerbatimBlockLineComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -1520,7 +1556,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VerbatimBlockLineComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -1599,11 +1635,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (VerbatimBlockComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -1623,7 +1659,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected VerbatimBlockComment(void* native, bool skipVTables = false) @@ -1636,7 +1672,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VerbatimBlockComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -1645,7 +1681,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VerbatimBlockComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -1728,11 +1764,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (VerbatimLineComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -1752,7 +1788,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected VerbatimLineComment(void* native, bool skipVTables = false) @@ -1765,7 +1801,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VerbatimLineComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -1774,7 +1810,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VerbatimLineComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -1872,7 +1908,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.InlineCommandComment.Argument managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.InlineCommandComment.Argument managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -1885,11 +1933,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Argument)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -1909,7 +1957,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Argument(void* native, bool skipVTables = false) @@ -1923,7 +1971,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.InlineCommandComment.Argument.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -1931,7 +1979,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.InlineCommandComment.Argument.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -1982,11 +2030,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (InlineCommandComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -2006,7 +2054,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected InlineCommandComment(void* native, bool skipVTables = false) @@ -2019,7 +2067,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.InlineCommandComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -2028,7 +2076,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.InlineCommandComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -2135,11 +2183,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (HTMLTagComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -2159,7 +2207,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected HTMLTagComment(void* native, bool skipVTables = false) @@ -2172,7 +2220,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.HTMLTagComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -2181,7 +2229,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.HTMLTagComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, Kind); } @@ -2190,7 +2238,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.HTMLTagComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.HTMLTagComment.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.HTMLTagComment.__Internal*) _0.__Instance); } @@ -2252,7 +2300,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -2265,11 +2325,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Attribute)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -2289,7 +2349,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Attribute(void* native, bool skipVTables = false) @@ -2303,7 +2363,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -2311,7 +2371,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -2376,11 +2436,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (HTMLStartTagComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -2400,7 +2460,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected HTMLStartTagComment(void* native, bool skipVTables = false) @@ -2413,7 +2473,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.HTMLStartTagComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -2422,7 +2482,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.HTMLStartTagComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -2518,11 +2578,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (HTMLEndTagComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -2542,7 +2602,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected HTMLEndTagComment(void* native, bool skipVTables = false) @@ -2555,7 +2615,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.HTMLEndTagComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -2564,7 +2624,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.HTMLEndTagComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -2629,11 +2689,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TextComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -2653,7 +2713,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TextComment(void* native, bool skipVTables = false) @@ -2666,7 +2726,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TextComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -2675,7 +2735,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TextComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -2734,7 +2794,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.RawComment managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.RawComment managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -2747,11 +2819,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (RawComment)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -2771,7 +2843,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected RawComment(void* native, bool skipVTables = false) @@ -2785,7 +2857,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.RawComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -2793,7 +2865,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.RawComment.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -2901,7 +2973,7 @@ namespace CppSharp } private SourceLocation.__Internal __instance; - internal SourceLocation.__Internal __Instance { get { return __instance; } } + internal SourceLocation.__Internal __Instance => __instance; internal static SourceLocation __CreateInstance(__IntPtr native, bool skipVTables = false) { @@ -2980,7 +3052,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.SourceRange managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.SourceRange managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -2993,11 +3077,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (SourceRange)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -3017,7 +3101,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected SourceRange(void* native, bool skipVTables = false) @@ -3031,7 +3115,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.SourceRange.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.SourceRange.__Internal*) __Instance) = *((global::CppSharp.Parser.SourceRange.__Internal*) _0.__Instance); } @@ -3039,7 +3123,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.SourceRange.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -3190,7 +3274,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.Type managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.Type managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -3203,11 +3299,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Type)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -3227,7 +3323,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Type(void* native, bool skipVTables = false) @@ -3241,7 +3337,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Type.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, kind); } @@ -3249,7 +3345,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Type.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -3321,7 +3417,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.TypeQualifiers managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.TypeQualifiers managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -3334,11 +3442,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TypeQualifiers)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -3358,7 +3466,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TypeQualifiers(void* native, bool skipVTables = false) @@ -3372,7 +3480,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypeQualifiers.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.TypeQualifiers.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.TypeQualifiers.__Internal*) _0.__Instance); } @@ -3380,7 +3488,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypeQualifiers.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } public void Dispose() @@ -3458,7 +3566,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.QualifiedType managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.QualifiedType managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -3471,11 +3591,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (QualifiedType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -3495,7 +3615,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected QualifiedType(void* native, bool skipVTables = false) @@ -3509,7 +3629,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.QualifiedType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -3517,7 +3637,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.QualifiedType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.QualifiedType.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.QualifiedType.__Internal*) _0.__Instance); } @@ -3594,11 +3714,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TagType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -3618,7 +3738,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TagType(void* native, bool skipVTables = false) @@ -3631,7 +3751,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TagType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -3640,7 +3760,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TagType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -3698,11 +3818,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ArrayType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -3722,7 +3842,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ArrayType(void* native, bool skipVTables = false) @@ -3735,7 +3855,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ArrayType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -3744,7 +3864,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ArrayType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -3849,11 +3969,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (FunctionType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -3873,7 +3993,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected FunctionType(void* native, bool skipVTables = false) @@ -3886,7 +4006,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FunctionType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -3895,7 +4015,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FunctionType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -4023,11 +4143,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (PointerType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -4047,7 +4167,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected PointerType(void* native, bool skipVTables = false) @@ -4060,7 +4180,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PointerType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -4069,7 +4189,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PointerType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -4130,11 +4250,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (MemberPointerType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -4154,7 +4274,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected MemberPointerType(void* native, bool skipVTables = false) @@ -4167,7 +4287,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MemberPointerType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -4176,7 +4296,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MemberPointerType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -4224,11 +4344,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TypedefType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -4248,7 +4368,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TypedefType(void* native, bool skipVTables = false) @@ -4261,7 +4381,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypedefType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -4270,7 +4390,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypedefType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -4318,11 +4438,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (AttributedType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -4342,7 +4462,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected AttributedType(void* native, bool skipVTables = false) @@ -4355,7 +4475,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AttributedType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -4364,7 +4484,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AttributedType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -4429,11 +4549,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DecayedType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -4453,7 +4573,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DecayedType(void* native, bool skipVTables = false) @@ -4466,7 +4586,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DecayedType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -4475,7 +4595,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DecayedType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -4559,7 +4679,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.TemplateArgument managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.TemplateArgument managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -4572,11 +4704,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TemplateArgument)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -4596,7 +4728,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TemplateArgument(void* native, bool skipVTables = false) @@ -4610,7 +4742,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateArgument.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -4618,7 +4750,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateArgument.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.TemplateArgument.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.TemplateArgument.__Internal*) _0.__Instance); } @@ -4738,11 +4870,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TemplateSpecializationType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -4762,7 +4894,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TemplateSpecializationType(void* native, bool skipVTables = false) @@ -4775,7 +4907,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateSpecializationType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -4784,7 +4916,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateSpecializationType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -4906,11 +5038,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DependentTemplateSpecializationType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -4930,7 +5062,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DependentTemplateSpecializationType(void* native, bool skipVTables = false) @@ -4943,7 +5075,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DependentTemplateSpecializationType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -4952,7 +5084,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DependentTemplateSpecializationType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -5050,11 +5182,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TemplateParameterType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -5074,7 +5206,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TemplateParameterType(void* native, bool skipVTables = false) @@ -5087,7 +5219,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateParameterType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -5096,7 +5228,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateParameterType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -5198,11 +5330,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TemplateParameterSubstitutionType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -5222,7 +5354,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TemplateParameterSubstitutionType(void* native, bool skipVTables = false) @@ -5235,7 +5367,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateParameterSubstitutionType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -5244,7 +5376,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateParameterSubstitutionType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -5307,11 +5439,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (InjectedClassNameType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -5331,7 +5463,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected InjectedClassNameType(void* native, bool skipVTables = false) @@ -5344,7 +5476,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.InjectedClassNameType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -5353,7 +5485,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.InjectedClassNameType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -5419,11 +5551,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DependentNameType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -5443,7 +5575,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DependentNameType(void* native, bool skipVTables = false) @@ -5456,7 +5588,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DependentNameType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -5465,7 +5597,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DependentNameType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -5541,11 +5673,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (PackExpansionType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -5565,7 +5697,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected PackExpansionType(void* native, bool skipVTables = false) @@ -5578,7 +5710,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PackExpansionType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -5587,7 +5719,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PackExpansionType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -5621,11 +5753,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (UnaryTransformType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -5645,7 +5777,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected UnaryTransformType(void* native, bool skipVTables = false) @@ -5658,7 +5790,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnaryTransformType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -5667,7 +5799,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnaryTransformType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -5730,11 +5862,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (UnresolvedUsingType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -5754,7 +5886,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected UnresolvedUsingType(void* native, bool skipVTables = false) @@ -5767,7 +5899,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnresolvedUsingType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -5776,7 +5908,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnresolvedUsingType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -5824,11 +5956,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (VectorType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -5848,7 +5980,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected VectorType(void* native, bool skipVTables = false) @@ -5861,7 +5993,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VectorType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -5870,7 +6002,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VectorType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -5931,11 +6063,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (BuiltinType)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -5955,7 +6087,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected BuiltinType(void* native, bool skipVTables = false) @@ -5968,7 +6100,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BuiltinType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -5977,7 +6109,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BuiltinType.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -6267,7 +6399,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.Declaration managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.Declaration managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -6280,11 +6424,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Declaration)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -6304,7 +6448,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Declaration(void* native, bool skipVTables = false) @@ -6318,7 +6462,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Declaration.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, kind); } @@ -6326,7 +6470,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Declaration.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -6851,11 +6995,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DeclarationContext)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -6875,7 +7019,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DeclarationContext(void* native, bool skipVTables = false) @@ -6888,7 +7032,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DeclarationContext.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, kind); } @@ -6897,7 +7041,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DeclarationContext.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -7256,11 +7400,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TypedefNameDecl)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -7280,7 +7424,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TypedefNameDecl(void* native, bool skipVTables = false) @@ -7293,7 +7437,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypedefNameDecl.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, kind); } @@ -7302,7 +7446,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypedefNameDecl.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -7393,11 +7537,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TypedefDecl)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -7417,7 +7561,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TypedefDecl(void* native, bool skipVTables = false) @@ -7430,7 +7574,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypedefDecl.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -7439,7 +7583,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypedefDecl.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -7511,11 +7655,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TypeAlias)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -7535,7 +7679,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TypeAlias(void* native, bool skipVTables = false) @@ -7548,7 +7692,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypeAlias.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -7557,7 +7701,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypeAlias.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -7642,11 +7786,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Friend)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -7666,7 +7810,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Friend(void* native, bool skipVTables = false) @@ -7679,7 +7823,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Friend.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -7688,7 +7832,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Friend.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -7746,7 +7890,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.StatementObsolete managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.StatementObsolete managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -7759,11 +7915,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (StatementObsolete)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -7783,7 +7939,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected StatementObsolete(void* native, bool skipVTables = false) @@ -7797,7 +7953,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.StatementObsolete.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, str); var __arg0 = __basicString0.__Instance; @@ -7810,7 +7966,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.StatementObsolete.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -7907,11 +8063,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ExpressionObsolete)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -7931,7 +8087,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ExpressionObsolete(void* native, bool skipVTables = false) @@ -7944,7 +8100,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ExpressionObsolete.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, str); var __arg0 = __basicString0.__Instance; @@ -7958,7 +8114,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ExpressionObsolete.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -8012,11 +8168,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (BinaryOperatorObsolete)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -8036,7 +8192,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected BinaryOperatorObsolete(void* native, bool skipVTables = false) @@ -8049,7 +8205,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BinaryOperatorObsolete.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, str); var __arg0 = __basicString0.__Instance; @@ -8068,7 +8224,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BinaryOperatorObsolete.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -8174,11 +8330,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CallExprObsolete)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -8198,7 +8354,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CallExprObsolete(void* native, bool skipVTables = false) @@ -8211,7 +8367,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CallExprObsolete.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, str); var __arg0 = __basicString0.__Instance; @@ -8225,7 +8381,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CallExprObsolete.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -8319,11 +8475,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXConstructExprObsolete)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -8343,7 +8499,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXConstructExprObsolete(void* native, bool skipVTables = false) @@ -8356,7 +8512,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXConstructExprObsolete.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, str); var __arg0 = __basicString0.__Instance; @@ -8370,7 +8526,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXConstructExprObsolete.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -8476,11 +8632,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Parameter)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -8500,7 +8656,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Parameter(void* native, bool skipVTables = false) @@ -8513,7 +8669,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Parameter.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -8522,7 +8678,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Parameter.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -8717,11 +8873,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Function)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -8741,7 +8897,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Function(void* native, bool skipVTables = false) @@ -8754,7 +8910,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Function.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -8763,7 +8919,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Function.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -9174,11 +9330,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Method)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -9198,7 +9354,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Method(void* native, bool skipVTables = false) @@ -9211,7 +9367,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Method.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -9220,7 +9376,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Method.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -9531,11 +9687,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Item)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -9555,7 +9711,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Item(void* native, bool skipVTables = false) @@ -9568,7 +9724,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Enumeration.Item.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -9577,7 +9733,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Enumeration.Item.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -9636,11 +9792,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Enumeration)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -9660,7 +9816,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Enumeration(void* native, bool skipVTables = false) @@ -9673,7 +9829,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Enumeration.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -9682,7 +9838,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Enumeration.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -9838,11 +9994,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Variable)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -9862,7 +10018,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Variable(void* native, bool skipVTables = false) @@ -9875,7 +10031,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Variable.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -9884,7 +10040,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Variable.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -9982,7 +10138,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.BaseClassSpecifier managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.BaseClassSpecifier managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -9995,11 +10163,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (BaseClassSpecifier)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -10019,7 +10187,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected BaseClassSpecifier(void* native, bool skipVTables = false) @@ -10033,7 +10201,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BaseClassSpecifier.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -10041,7 +10209,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BaseClassSpecifier.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.BaseClassSpecifier.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.BaseClassSpecifier.__Internal*) _0.__Instance); } @@ -10168,11 +10336,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Field)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -10192,7 +10360,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Field(void* native, bool skipVTables = false) @@ -10205,7 +10373,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Field.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -10214,7 +10382,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Field.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -10339,11 +10507,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (AccessSpecifierDecl)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -10363,7 +10531,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected AccessSpecifierDecl(void* native, bool skipVTables = false) @@ -10376,7 +10544,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AccessSpecifierDecl.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -10385,7 +10553,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AccessSpecifierDecl.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -10426,7 +10594,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.VTableComponent managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.VTableComponent managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -10439,11 +10619,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (VTableComponent)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -10463,7 +10643,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected VTableComponent(void* native, bool skipVTables = false) @@ -10477,7 +10657,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VTableComponent.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -10485,7 +10665,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VTableComponent.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.VTableComponent.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.VTableComponent.__Internal*) _0.__Instance); } @@ -10579,7 +10759,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.VTableLayout managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.VTableLayout managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -10592,11 +10784,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (VTableLayout)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -10616,7 +10808,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected VTableLayout(void* native, bool skipVTables = false) @@ -10630,7 +10822,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VTableLayout.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -10638,7 +10830,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VTableLayout.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -10717,7 +10909,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.VFTableInfo managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.VFTableInfo managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -10730,11 +10934,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (VFTableInfo)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -10754,7 +10958,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected VFTableInfo(void* native, bool skipVTables = false) @@ -10768,7 +10972,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VFTableInfo.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -10776,7 +10980,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VFTableInfo.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -10880,7 +11084,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.LayoutField managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.LayoutField managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -10893,11 +11109,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (LayoutField)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -10917,7 +11133,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected LayoutField(void* native, bool skipVTables = false) @@ -10931,7 +11147,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.LayoutField.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -10939,7 +11155,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.LayoutField.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(other, null)) throw new global::System.ArgumentNullException("other", "Cannot be null because it is a C++ reference (&)."); var __arg0 = other.__Instance; @@ -11042,7 +11258,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.LayoutBase managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.LayoutBase managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -11055,11 +11283,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (LayoutBase)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -11079,7 +11307,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected LayoutBase(void* native, bool skipVTables = false) @@ -11093,7 +11321,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.LayoutBase.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -11101,7 +11329,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.LayoutBase.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(other, null)) throw new global::System.ArgumentNullException("other", "Cannot be null because it is a C++ reference (&)."); var __arg0 = other.__Instance; @@ -11221,7 +11449,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.ClassLayout managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.ClassLayout managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -11234,11 +11474,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ClassLayout)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -11258,7 +11498,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ClassLayout(void* native, bool skipVTables = false) @@ -11272,7 +11512,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ClassLayout.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -11280,7 +11520,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ClassLayout.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -11629,11 +11869,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Class)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -11653,7 +11893,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Class(void* native, bool skipVTables = false) @@ -11666,7 +11906,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Class.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -11675,7 +11915,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Class.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -12039,11 +12279,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Template)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -12063,7 +12303,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Template(void* native, bool skipVTables = false) @@ -12076,7 +12316,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Template.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, kind); } @@ -12085,7 +12325,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Template.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -12094,7 +12334,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Template.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -12215,11 +12455,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TypeAliasTemplate)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -12239,7 +12479,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TypeAliasTemplate(void* native, bool skipVTables = false) @@ -12252,7 +12492,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypeAliasTemplate.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -12261,7 +12501,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypeAliasTemplate.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -12334,11 +12574,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TemplateParameter)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -12358,7 +12598,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TemplateParameter(void* native, bool skipVTables = false) @@ -12371,7 +12611,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateParameter.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, kind); } @@ -12380,7 +12620,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateParameter.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -12499,11 +12739,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TemplateTemplateParameter)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -12523,7 +12763,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TemplateTemplateParameter(void* native, bool skipVTables = false) @@ -12536,7 +12776,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateTemplateParameter.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -12545,7 +12785,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TemplateTemplateParameter.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -12658,11 +12898,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TypeTemplateParameter)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -12682,7 +12922,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TypeTemplateParameter(void* native, bool skipVTables = false) @@ -12695,7 +12935,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypeTemplateParameter.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -12704,7 +12944,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypeTemplateParameter.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -12797,11 +13037,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (NonTypeTemplateParameter)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -12821,7 +13061,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected NonTypeTemplateParameter(void* native, bool skipVTables = false) @@ -12834,7 +13074,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.NonTypeTemplateParameter.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -12843,7 +13083,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.NonTypeTemplateParameter.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -13001,11 +13241,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ClassTemplate)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -13025,7 +13265,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ClassTemplate(void* native, bool skipVTables = false) @@ -13038,7 +13278,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ClassTemplate.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -13047,7 +13287,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ClassTemplate.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -13211,11 +13451,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ClassTemplateSpecialization)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -13235,7 +13475,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ClassTemplateSpecialization(void* native, bool skipVTables = false) @@ -13248,7 +13488,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ClassTemplateSpecialization.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -13257,7 +13497,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ClassTemplateSpecialization.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -13413,11 +13653,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ClassTemplatePartialSpecialization)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -13437,7 +13677,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ClassTemplatePartialSpecialization(void* native, bool skipVTables = false) @@ -13450,7 +13690,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ClassTemplatePartialSpecialization.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -13459,7 +13699,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ClassTemplatePartialSpecialization.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -13547,11 +13787,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (FunctionTemplate)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -13571,7 +13811,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected FunctionTemplate(void* native, bool skipVTables = false) @@ -13584,7 +13824,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FunctionTemplate.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -13593,7 +13833,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FunctionTemplate.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -13691,7 +13931,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.FunctionTemplateSpecialization managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.FunctionTemplateSpecialization managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -13704,11 +13956,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (FunctionTemplateSpecialization)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -13728,7 +13980,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected FunctionTemplateSpecialization(void* native, bool skipVTables = false) @@ -13742,7 +13994,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FunctionTemplateSpecialization.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -13750,7 +14002,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FunctionTemplateSpecialization.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -13916,11 +14168,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (VarTemplate)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -13940,7 +14192,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected VarTemplate(void* native, bool skipVTables = false) @@ -13953,7 +14205,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VarTemplate.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -13962,7 +14214,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VarTemplate.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -14103,11 +14355,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (VarTemplateSpecialization)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -14127,7 +14379,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected VarTemplateSpecialization(void* native, bool skipVTables = false) @@ -14140,7 +14392,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VarTemplateSpecialization.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -14149,7 +14401,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VarTemplateSpecialization.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -14282,11 +14534,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (VarTemplatePartialSpecialization)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -14306,7 +14558,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected VarTemplatePartialSpecialization(void* native, bool skipVTables = false) @@ -14319,7 +14571,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VarTemplatePartialSpecialization.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -14328,7 +14580,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VarTemplatePartialSpecialization.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -14398,11 +14650,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (UnresolvedUsingTypename)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -14422,7 +14674,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected UnresolvedUsingTypename(void* native, bool skipVTables = false) @@ -14435,7 +14687,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnresolvedUsingTypename.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -14444,7 +14696,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnresolvedUsingTypename.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -14527,11 +14779,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Namespace)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -14551,7 +14803,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Namespace(void* native, bool skipVTables = false) @@ -14564,7 +14816,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Namespace.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -14573,7 +14825,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Namespace.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -14627,7 +14879,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.PreprocessedEntity managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.PreprocessedEntity managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -14640,11 +14904,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (PreprocessedEntity)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -14664,7 +14928,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected PreprocessedEntity(void* native, bool skipVTables = false) @@ -14678,7 +14942,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PreprocessedEntity.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -14686,7 +14950,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PreprocessedEntity.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.PreprocessedEntity.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.PreprocessedEntity.__Internal*) _0.__Instance); } @@ -14780,11 +15044,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (MacroDefinition)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -14804,7 +15068,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected MacroDefinition(void* native, bool skipVTables = false) @@ -14817,7 +15081,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MacroDefinition.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -14826,7 +15090,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MacroDefinition.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -14934,11 +15198,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (MacroExpansion)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -14958,7 +15222,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected MacroExpansion(void* native, bool skipVTables = false) @@ -14971,7 +15235,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MacroExpansion.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -14980,7 +15244,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MacroExpansion.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -15120,11 +15384,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TranslationUnit)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -15144,7 +15408,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TranslationUnit(void* native, bool skipVTables = false) @@ -15157,7 +15421,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TranslationUnit.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -15166,7 +15430,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TranslationUnit.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -15280,7 +15544,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.ASTContext managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.ASTContext managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -15293,11 +15569,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ASTContext)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -15317,7 +15593,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ASTContext(void* native, bool skipVTables = false) @@ -15331,7 +15607,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ASTContext.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -15339,7 +15615,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ASTContext.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -15569,7 +15845,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.Stmt managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.Stmt managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -15582,11 +15870,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Stmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -15606,7 +15894,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Stmt(void* native, bool skipVTables = false) @@ -15620,7 +15908,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Stmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -15628,7 +15916,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Stmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -15636,7 +15924,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Stmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.Stmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.Stmt.__Internal*) _0.__Instance); } @@ -15762,11 +16050,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DeclStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -15786,7 +16074,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DeclStmt(void* native, bool skipVTables = false) @@ -15799,7 +16087,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DeclStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -15808,7 +16096,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DeclStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -15916,11 +16204,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (NullStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -15940,7 +16228,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected NullStmt(void* native, bool skipVTables = false) @@ -15953,7 +16241,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.NullStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -15962,7 +16250,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.NullStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.NullStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.NullStmt.__Internal*) _0.__Instance); } @@ -16041,11 +16329,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CompoundStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -16065,7 +16353,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CompoundStmt(void* native, bool skipVTables = false) @@ -16078,7 +16366,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CompoundStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -16087,7 +16375,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CompoundStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -16252,11 +16540,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (SwitchCase)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -16276,7 +16564,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected SwitchCase(void* native, bool skipVTables = false) @@ -16289,7 +16577,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SwitchCase.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -16298,7 +16586,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SwitchCase.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -16307,7 +16595,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SwitchCase.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.SwitchCase.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.SwitchCase.__Internal*) _0.__Instance); } @@ -16391,11 +16679,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CaseStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -16415,7 +16703,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CaseStmt(void* native, bool skipVTables = false) @@ -16428,7 +16716,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CaseStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -16437,7 +16725,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CaseStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CaseStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CaseStmt.__Internal*) _0.__Instance); } @@ -16539,11 +16827,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DefaultStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -16563,7 +16851,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DefaultStmt(void* native, bool skipVTables = false) @@ -16576,7 +16864,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DefaultStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -16585,7 +16873,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DefaultStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.DefaultStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.DefaultStmt.__Internal*) _0.__Instance); } @@ -16633,11 +16921,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (LabelStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -16657,7 +16945,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected LabelStmt(void* native, bool skipVTables = false) @@ -16670,7 +16958,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.LabelStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -16679,7 +16967,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.LabelStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.LabelStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.LabelStmt.__Internal*) _0.__Instance); if (_0.__name_OwnsNativeMemory) this.Name = _0.Name; @@ -16766,11 +17054,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (AttributedStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -16790,7 +17078,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected AttributedStmt(void* native, bool skipVTables = false) @@ -16803,7 +17091,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AttributedStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -16812,7 +17100,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AttributedStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.AttributedStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.AttributedStmt.__Internal*) _0.__Instance); } @@ -16882,11 +17170,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (IfStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -16906,7 +17194,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected IfStmt(void* native, bool skipVTables = false) @@ -16919,7 +17207,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.IfStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -16928,7 +17216,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.IfStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.IfStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.IfStmt.__Internal*) _0.__Instance); } @@ -17128,11 +17416,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (SwitchStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -17152,7 +17440,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected SwitchStmt(void* native, bool skipVTables = false) @@ -17165,7 +17453,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SwitchStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -17174,7 +17462,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SwitchStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.SwitchStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.SwitchStmt.__Internal*) _0.__Instance); } @@ -17318,11 +17606,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (WhileStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -17342,7 +17630,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected WhileStmt(void* native, bool skipVTables = false) @@ -17355,7 +17643,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.WhileStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -17364,7 +17652,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.WhileStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.WhileStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.WhileStmt.__Internal*) _0.__Instance); } @@ -17468,11 +17756,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DoStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -17492,7 +17780,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DoStmt(void* native, bool skipVTables = false) @@ -17505,7 +17793,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DoStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -17514,7 +17802,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DoStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.DoStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.DoStmt.__Internal*) _0.__Instance); } @@ -17620,11 +17908,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ForStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -17644,7 +17932,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ForStmt(void* native, bool skipVTables = false) @@ -17657,7 +17945,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ForStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -17666,7 +17954,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ForStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ForStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ForStmt.__Internal*) _0.__Instance); } @@ -17808,11 +18096,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (GotoStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -17832,7 +18120,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected GotoStmt(void* native, bool skipVTables = false) @@ -17845,7 +18133,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.GotoStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -17854,7 +18142,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.GotoStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.GotoStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.GotoStmt.__Internal*) _0.__Instance); } @@ -17914,11 +18202,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (IndirectGotoStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -17938,7 +18226,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected IndirectGotoStmt(void* native, bool skipVTables = false) @@ -17951,7 +18239,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.IndirectGotoStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -17960,7 +18248,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.IndirectGotoStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.IndirectGotoStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.IndirectGotoStmt.__Internal*) _0.__Instance); } @@ -18032,11 +18320,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ContinueStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -18056,7 +18344,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ContinueStmt(void* native, bool skipVTables = false) @@ -18069,7 +18357,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ContinueStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -18078,7 +18366,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ContinueStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ContinueStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ContinueStmt.__Internal*) _0.__Instance); } @@ -18123,11 +18411,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (BreakStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -18147,7 +18435,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected BreakStmt(void* native, bool skipVTables = false) @@ -18160,7 +18448,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BreakStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -18169,7 +18457,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BreakStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.BreakStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.BreakStmt.__Internal*) _0.__Instance); } @@ -18215,11 +18503,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ReturnStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -18239,7 +18527,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ReturnStmt(void* native, bool skipVTables = false) @@ -18252,7 +18540,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ReturnStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -18261,7 +18549,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ReturnStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ReturnStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ReturnStmt.__Internal*) _0.__Instance); } @@ -18358,11 +18646,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (AsmStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -18382,7 +18670,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected AsmStmt(void* native, bool skipVTables = false) @@ -18395,7 +18683,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AsmStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -18404,7 +18692,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AsmStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -18413,7 +18701,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AsmStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -18651,7 +18939,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.GCCAsmStmt.AsmStringPiece managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.GCCAsmStmt.AsmStringPiece managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -18664,11 +18964,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (AsmStringPiece)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -18688,7 +18988,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected AsmStringPiece(void* native, bool skipVTables = false) @@ -18702,7 +19002,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.GCCAsmStmt.AsmStringPiece.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -18710,7 +19010,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.GCCAsmStmt.AsmStringPiece.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -18813,11 +19113,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (GCCAsmStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -18837,7 +19137,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected GCCAsmStmt(void* native, bool skipVTables = false) @@ -18850,7 +19150,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.GCCAsmStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -18859,7 +19159,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.GCCAsmStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -18937,11 +19237,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (MSAsmStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -18961,7 +19261,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected MSAsmStmt(void* native, bool skipVTables = false) @@ -18974,7 +19274,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MSAsmStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -18983,7 +19283,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MSAsmStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -19088,11 +19388,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (SEHExceptStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -19112,7 +19412,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected SEHExceptStmt(void* native, bool skipVTables = false) @@ -19125,7 +19425,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SEHExceptStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -19134,7 +19434,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SEHExceptStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.SEHExceptStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.SEHExceptStmt.__Internal*) _0.__Instance); } @@ -19208,11 +19508,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (SEHFinallyStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -19232,7 +19532,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected SEHFinallyStmt(void* native, bool skipVTables = false) @@ -19245,7 +19545,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SEHFinallyStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -19254,7 +19554,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SEHFinallyStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.SEHFinallyStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.SEHFinallyStmt.__Internal*) _0.__Instance); } @@ -19318,11 +19618,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (SEHTryStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -19342,7 +19642,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected SEHTryStmt(void* native, bool skipVTables = false) @@ -19355,7 +19655,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SEHTryStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -19364,7 +19664,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SEHTryStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.SEHTryStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.SEHTryStmt.__Internal*) _0.__Instance); } @@ -19478,11 +19778,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (SEHLeaveStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -19502,7 +19802,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected SEHLeaveStmt(void* native, bool skipVTables = false) @@ -19515,7 +19815,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SEHLeaveStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -19524,7 +19824,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SEHLeaveStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.SEHLeaveStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.SEHLeaveStmt.__Internal*) _0.__Instance); } @@ -19606,7 +19906,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.CapturedStmt.Capture managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.CapturedStmt.Capture managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -19619,11 +19931,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Capture)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -19643,7 +19955,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Capture(void* native, bool skipVTables = false) @@ -19657,7 +19969,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CapturedStmt.Capture.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -19665,7 +19977,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CapturedStmt.Capture.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CapturedStmt.Capture.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CapturedStmt.Capture.__Internal*) _0.__Instance); } @@ -19775,11 +20087,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CapturedStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -19799,7 +20111,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CapturedStmt(void* native, bool skipVTables = false) @@ -19812,7 +20124,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CapturedStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -19821,7 +20133,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CapturedStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -19930,11 +20242,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXCatchStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -19954,7 +20266,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXCatchStmt(void* native, bool skipVTables = false) @@ -19967,7 +20279,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXCatchStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -19976,7 +20288,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXCatchStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXCatchStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXCatchStmt.__Internal*) _0.__Instance); } @@ -20052,11 +20364,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXTryStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -20076,7 +20388,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXTryStmt(void* native, bool skipVTables = false) @@ -20089,7 +20401,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXTryStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -20098,7 +20410,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXTryStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXTryStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXTryStmt.__Internal*) _0.__Instance); } @@ -20182,11 +20494,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXForRangeStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -20206,7 +20518,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXForRangeStmt(void* native, bool skipVTables = false) @@ -20219,7 +20531,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXForRangeStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -20228,7 +20540,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXForRangeStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXForRangeStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXForRangeStmt.__Internal*) _0.__Instance); } @@ -20441,11 +20753,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (MSDependentExistsStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -20465,7 +20777,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected MSDependentExistsStmt(void* native, bool skipVTables = false) @@ -20478,7 +20790,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MSDependentExistsStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -20487,7 +20799,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MSDependentExistsStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.MSDependentExistsStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.MSDependentExistsStmt.__Internal*) _0.__Instance); } @@ -20606,7 +20918,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.CoroutineBodyStmt.CtorArgs managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.CoroutineBodyStmt.CtorArgs managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -20619,11 +20943,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CtorArgs)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -20643,7 +20967,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CtorArgs(void* native, bool skipVTables = false) @@ -20657,7 +20981,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoroutineBodyStmt.CtorArgs.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -20665,7 +20989,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoroutineBodyStmt.CtorArgs.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CoroutineBodyStmt.CtorArgs.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CoroutineBodyStmt.CtorArgs.__Internal*) _0.__Instance); } @@ -20697,11 +21021,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CoroutineBodyStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -20721,7 +21045,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CoroutineBodyStmt(void* native, bool skipVTables = false) @@ -20734,7 +21058,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoroutineBodyStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -20743,7 +21067,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoroutineBodyStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CoroutineBodyStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CoroutineBodyStmt.__Internal*) _0.__Instance); } @@ -20966,11 +21290,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CoreturnStmt)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -20990,7 +21314,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CoreturnStmt(void* native, bool skipVTables = false) @@ -21003,7 +21327,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoreturnStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -21012,7 +21336,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoreturnStmt.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CoreturnStmt.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CoreturnStmt.__Internal*) _0.__Instance); } @@ -21416,7 +21740,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.Expr.Classification managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.Expr.Classification managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -21429,11 +21765,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Classification)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -21453,7 +21789,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Classification(void* native, bool skipVTables = false) @@ -21467,7 +21803,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Expr.Classification.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -21475,7 +21811,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Expr.Classification.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.Expr.Classification.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.Expr.Classification.__Internal*) _0.__Instance); } @@ -21611,11 +21947,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Expr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -21635,7 +21971,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Expr(void* native, bool skipVTables = false) @@ -21648,7 +21984,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Expr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -21657,7 +21993,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Expr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -21666,7 +22002,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.Expr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.Expr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.Expr.__Internal*) _0.__Instance); } @@ -21906,11 +22242,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (FullExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -21930,7 +22266,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected FullExpr(void* native, bool skipVTables = false) @@ -21943,7 +22279,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FullExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -21952,7 +22288,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FullExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -21961,7 +22297,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FullExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.FullExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.FullExpr.__Internal*) _0.__Instance); } @@ -22026,11 +22362,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ConstantExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -22050,7 +22386,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ConstantExpr(void* native, bool skipVTables = false) @@ -22063,7 +22399,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ConstantExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -22072,7 +22408,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ConstantExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ConstantExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ConstantExpr.__Internal*) _0.__Instance); } } @@ -22121,11 +22457,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (OpaqueValueExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -22145,7 +22481,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected OpaqueValueExpr(void* native, bool skipVTables = false) @@ -22158,7 +22494,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.OpaqueValueExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -22167,7 +22503,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.OpaqueValueExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.OpaqueValueExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.OpaqueValueExpr.__Internal*) _0.__Instance); } @@ -22265,11 +22601,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DeclRefExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -22289,7 +22625,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DeclRefExpr(void* native, bool skipVTables = false) @@ -22302,7 +22638,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DeclRefExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -22311,7 +22647,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DeclRefExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.DeclRefExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.DeclRefExpr.__Internal*) _0.__Instance); } @@ -22516,11 +22852,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (IntegerLiteral)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -22540,7 +22876,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected IntegerLiteral(void* native, bool skipVTables = false) @@ -22553,7 +22889,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.IntegerLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -22562,7 +22898,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.IntegerLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.IntegerLiteral.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.IntegerLiteral.__Internal*) _0.__Instance); } @@ -22636,11 +22972,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (FixedPointLiteral)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -22660,7 +22996,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected FixedPointLiteral(void* native, bool skipVTables = false) @@ -22673,7 +23009,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FixedPointLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -22682,7 +23018,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FixedPointLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.FixedPointLiteral.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.FixedPointLiteral.__Internal*) _0.__Instance); } @@ -22766,11 +23102,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CharacterLiteral)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -22790,7 +23126,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CharacterLiteral(void* native, bool skipVTables = false) @@ -22803,7 +23139,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CharacterLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -22812,7 +23148,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CharacterLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CharacterLiteral.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CharacterLiteral.__Internal*) _0.__Instance); } @@ -22900,11 +23236,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (FloatingLiteral)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -22924,7 +23260,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected FloatingLiteral(void* native, bool skipVTables = false) @@ -22937,7 +23273,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FloatingLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -22946,7 +23282,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FloatingLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.FloatingLiteral.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.FloatingLiteral.__Internal*) _0.__Instance); } @@ -23031,11 +23367,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ImaginaryLiteral)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -23055,7 +23391,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ImaginaryLiteral(void* native, bool skipVTables = false) @@ -23068,7 +23404,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ImaginaryLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -23077,7 +23413,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ImaginaryLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ImaginaryLiteral.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ImaginaryLiteral.__Internal*) _0.__Instance); } @@ -23163,11 +23499,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (StringLiteral)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -23187,7 +23523,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected StringLiteral(void* native, bool skipVTables = false) @@ -23200,7 +23536,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.StringLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -23209,7 +23545,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.StringLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -23484,11 +23820,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (PredefinedExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -23508,7 +23844,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected PredefinedExpr(void* native, bool skipVTables = false) @@ -23521,7 +23857,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PredefinedExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -23530,7 +23866,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PredefinedExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.PredefinedExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.PredefinedExpr.__Internal*) _0.__Instance); } @@ -23604,11 +23940,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ParenExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -23628,7 +23964,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ParenExpr(void* native, bool skipVTables = false) @@ -23641,7 +23977,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ParenExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -23650,7 +23986,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ParenExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ParenExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ParenExpr.__Internal*) _0.__Instance); } @@ -23747,11 +24083,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (UnaryOperator)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -23771,7 +24107,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected UnaryOperator(void* native, bool skipVTables = false) @@ -23784,7 +24120,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnaryOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -23793,7 +24129,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnaryOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.UnaryOperator.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.UnaryOperator.__Internal*) _0.__Instance); } @@ -23987,11 +24323,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (OffsetOfExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -24011,7 +24347,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected OffsetOfExpr(void* native, bool skipVTables = false) @@ -24024,7 +24360,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.OffsetOfExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -24033,7 +24369,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.OffsetOfExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.OffsetOfExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.OffsetOfExpr.__Internal*) _0.__Instance); } @@ -24138,11 +24474,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (UnaryExprOrTypeTraitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -24162,7 +24498,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected UnaryExprOrTypeTraitExpr(void* native, bool skipVTables = false) @@ -24175,7 +24511,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnaryExprOrTypeTraitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -24184,7 +24520,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnaryExprOrTypeTraitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.UnaryExprOrTypeTraitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.UnaryExprOrTypeTraitExpr.__Internal*) _0.__Instance); } @@ -24330,11 +24666,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ArraySubscriptExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -24354,7 +24690,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ArraySubscriptExpr(void* native, bool skipVTables = false) @@ -24367,7 +24703,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ArraySubscriptExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -24376,7 +24712,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ArraySubscriptExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ArraySubscriptExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ArraySubscriptExpr.__Internal*) _0.__Instance); } @@ -24517,11 +24853,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CallExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -24541,7 +24877,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CallExpr(void* native, bool skipVTables = false) @@ -24554,7 +24890,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CallExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -24563,7 +24899,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CallExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -24572,7 +24908,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CallExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -24790,11 +25126,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (MemberExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -24814,7 +25150,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected MemberExpr(void* native, bool skipVTables = false) @@ -24827,7 +25163,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MemberExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -24836,7 +25172,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MemberExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.MemberExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.MemberExpr.__Internal*) _0.__Instance); } @@ -25054,11 +25390,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CompoundLiteralExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -25078,7 +25414,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CompoundLiteralExpr(void* native, bool skipVTables = false) @@ -25091,7 +25427,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CompoundLiteralExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -25100,7 +25436,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CompoundLiteralExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CompoundLiteralExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CompoundLiteralExpr.__Internal*) _0.__Instance); } @@ -25197,11 +25533,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CastExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -25221,7 +25557,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CastExpr(void* native, bool skipVTables = false) @@ -25234,7 +25570,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -25243,7 +25579,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -25252,7 +25588,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CastExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CastExpr.__Internal*) _0.__Instance); if (_0.__castKindName_OwnsNativeMemory) this.CastKindName = _0.CastKindName; @@ -25424,11 +25760,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ImplicitCastExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -25448,7 +25784,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ImplicitCastExpr(void* native, bool skipVTables = false) @@ -25461,7 +25797,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ImplicitCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -25470,7 +25806,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ImplicitCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ImplicitCastExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ImplicitCastExpr.__Internal*) _0.__Instance); } @@ -25540,11 +25876,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ExplicitCastExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -25564,7 +25900,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ExplicitCastExpr(void* native, bool skipVTables = false) @@ -25577,7 +25913,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ExplicitCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -25586,7 +25922,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ExplicitCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -25595,7 +25931,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ExplicitCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ExplicitCastExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ExplicitCastExpr.__Internal*) _0.__Instance); } @@ -25671,11 +26007,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CStyleCastExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -25695,7 +26031,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CStyleCastExpr(void* native, bool skipVTables = false) @@ -25708,7 +26044,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CStyleCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -25717,7 +26053,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CStyleCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CStyleCastExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CStyleCastExpr.__Internal*) _0.__Instance); } @@ -25814,11 +26150,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (BinaryOperator)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -25838,7 +26174,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected BinaryOperator(void* native, bool skipVTables = false) @@ -25851,7 +26187,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BinaryOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -25860,7 +26196,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BinaryOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -25869,7 +26205,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BinaryOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -26212,11 +26548,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CompoundAssignOperator)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -26236,7 +26572,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CompoundAssignOperator(void* native, bool skipVTables = false) @@ -26249,7 +26585,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CompoundAssignOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -26258,7 +26594,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CompoundAssignOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -26359,11 +26695,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (AbstractConditionalOperator)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -26383,7 +26719,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected AbstractConditionalOperator(void* native, bool skipVTables = false) @@ -26396,7 +26732,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AbstractConditionalOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -26405,7 +26741,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AbstractConditionalOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -26414,7 +26750,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AbstractConditionalOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.AbstractConditionalOperator.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.AbstractConditionalOperator.__Internal*) _0.__Instance); } @@ -26539,11 +26875,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ConditionalOperator)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -26563,7 +26899,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ConditionalOperator(void* native, bool skipVTables = false) @@ -26576,7 +26912,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ConditionalOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -26585,7 +26921,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ConditionalOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ConditionalOperator.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ConditionalOperator.__Internal*) _0.__Instance); } @@ -26665,11 +27001,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (BinaryConditionalOperator)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -26689,7 +27025,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected BinaryConditionalOperator(void* native, bool skipVTables = false) @@ -26702,7 +27038,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BinaryConditionalOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -26711,7 +27047,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BinaryConditionalOperator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.BinaryConditionalOperator.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.BinaryConditionalOperator.__Internal*) _0.__Instance); } @@ -26787,11 +27123,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (AddrLabelExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -26811,7 +27147,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected AddrLabelExpr(void* native, bool skipVTables = false) @@ -26824,7 +27160,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AddrLabelExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -26833,7 +27169,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AddrLabelExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.AddrLabelExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.AddrLabelExpr.__Internal*) _0.__Instance); } @@ -26907,11 +27243,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (StmtExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -26931,7 +27267,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected StmtExpr(void* native, bool skipVTables = false) @@ -26944,7 +27280,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.StmtExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -26953,7 +27289,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.StmtExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.StmtExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.StmtExpr.__Internal*) _0.__Instance); } @@ -27042,11 +27378,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ShuffleVectorExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -27066,7 +27402,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ShuffleVectorExpr(void* native, bool skipVTables = false) @@ -27079,7 +27415,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ShuffleVectorExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -27088,7 +27424,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ShuffleVectorExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ShuffleVectorExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ShuffleVectorExpr.__Internal*) _0.__Instance); } @@ -27175,11 +27511,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ConvertVectorExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -27199,7 +27535,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ConvertVectorExpr(void* native, bool skipVTables = false) @@ -27212,7 +27548,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ConvertVectorExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -27221,7 +27557,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ConvertVectorExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ConvertVectorExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ConvertVectorExpr.__Internal*) _0.__Instance); } @@ -27315,11 +27651,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ChooseExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -27339,7 +27675,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ChooseExpr(void* native, bool skipVTables = false) @@ -27352,7 +27688,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ChooseExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -27361,7 +27697,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ChooseExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ChooseExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ChooseExpr.__Internal*) _0.__Instance); } @@ -27516,11 +27852,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (GNUNullExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -27540,7 +27876,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected GNUNullExpr(void* native, bool skipVTables = false) @@ -27553,7 +27889,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.GNUNullExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -27562,7 +27898,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.GNUNullExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.GNUNullExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.GNUNullExpr.__Internal*) _0.__Instance); } @@ -27624,11 +27960,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (VAArgExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -27648,7 +27984,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected VAArgExpr(void* native, bool skipVTables = false) @@ -27661,7 +27997,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VAArgExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -27670,7 +28006,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.VAArgExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.VAArgExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.VAArgExpr.__Internal*) _0.__Instance); } @@ -27780,11 +28116,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (InitListExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -27804,7 +28140,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected InitListExpr(void* native, bool skipVTables = false) @@ -27817,7 +28153,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.InitListExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -27826,7 +28162,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.InitListExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.InitListExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.InitListExpr.__Internal*) _0.__Instance); } @@ -28054,7 +28390,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.DesignatedInitExpr.Designator managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.DesignatedInitExpr.Designator managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -28067,11 +28415,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Designator)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -28091,7 +28439,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Designator(void* native, bool skipVTables = false) @@ -28105,7 +28453,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DesignatedInitExpr.Designator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -28113,7 +28461,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DesignatedInitExpr.Designator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.DesignatedInitExpr.Designator.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.DesignatedInitExpr.Designator.__Internal*) _0.__Instance); } @@ -28296,7 +28644,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.DesignatedInitExpr.FieldDesignator managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.DesignatedInitExpr.FieldDesignator managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -28309,11 +28669,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (FieldDesignator)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -28333,7 +28693,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected FieldDesignator(void* native, bool skipVTables = false) @@ -28347,7 +28707,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DesignatedInitExpr.FieldDesignator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -28355,7 +28715,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DesignatedInitExpr.FieldDesignator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.DesignatedInitExpr.FieldDesignator.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.DesignatedInitExpr.FieldDesignator.__Internal*) _0.__Instance); } @@ -28392,7 +28752,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.DesignatedInitExpr.ArrayOrRangeDesignator managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.DesignatedInitExpr.ArrayOrRangeDesignator managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -28405,11 +28777,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ArrayOrRangeDesignator)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -28429,7 +28801,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ArrayOrRangeDesignator(void* native, bool skipVTables = false) @@ -28443,7 +28815,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DesignatedInitExpr.ArrayOrRangeDesignator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -28451,7 +28823,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DesignatedInitExpr.ArrayOrRangeDesignator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.DesignatedInitExpr.ArrayOrRangeDesignator.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.DesignatedInitExpr.ArrayOrRangeDesignator.__Internal*) _0.__Instance); } @@ -28483,11 +28855,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DesignatedInitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -28507,7 +28879,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DesignatedInitExpr(void* native, bool skipVTables = false) @@ -28520,7 +28892,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DesignatedInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -28529,7 +28901,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DesignatedInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.DesignatedInitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.DesignatedInitExpr.__Internal*) _0.__Instance); } @@ -28655,11 +29027,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (NoInitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -28679,7 +29051,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected NoInitExpr(void* native, bool skipVTables = false) @@ -28692,7 +29064,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.NoInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -28701,7 +29073,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.NoInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.NoInitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.NoInitExpr.__Internal*) _0.__Instance); } } @@ -28748,11 +29120,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DesignatedInitUpdateExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -28772,7 +29144,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DesignatedInitUpdateExpr(void* native, bool skipVTables = false) @@ -28785,7 +29157,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DesignatedInitUpdateExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -28794,7 +29166,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DesignatedInitUpdateExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.DesignatedInitUpdateExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.DesignatedInitUpdateExpr.__Internal*) _0.__Instance); } @@ -28869,11 +29241,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ArrayInitLoopExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -28893,7 +29265,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ArrayInitLoopExpr(void* native, bool skipVTables = false) @@ -28906,7 +29278,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ArrayInitLoopExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -28915,7 +29287,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ArrayInitLoopExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ArrayInitLoopExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ArrayInitLoopExpr.__Internal*) _0.__Instance); } @@ -28988,11 +29360,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ArrayInitIndexExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -29012,7 +29384,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ArrayInitIndexExpr(void* native, bool skipVTables = false) @@ -29025,7 +29397,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ArrayInitIndexExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -29034,7 +29406,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ArrayInitIndexExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ArrayInitIndexExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ArrayInitIndexExpr.__Internal*) _0.__Instance); } } @@ -29079,11 +29451,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ImplicitValueInitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -29103,7 +29475,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ImplicitValueInitExpr(void* native, bool skipVTables = false) @@ -29116,7 +29488,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ImplicitValueInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -29125,7 +29497,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ImplicitValueInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ImplicitValueInitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ImplicitValueInitExpr.__Internal*) _0.__Instance); } } @@ -29174,11 +29546,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ParenListExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -29198,7 +29570,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ParenListExpr(void* native, bool skipVTables = false) @@ -29211,7 +29583,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ParenListExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -29220,7 +29592,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ParenListExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ParenListExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ParenListExpr.__Internal*) _0.__Instance); } @@ -29313,11 +29685,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (GenericSelectionExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -29337,7 +29709,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected GenericSelectionExpr(void* native, bool skipVTables = false) @@ -29350,7 +29722,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.GenericSelectionExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -29359,7 +29731,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.GenericSelectionExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.GenericSelectionExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.GenericSelectionExpr.__Internal*) _0.__Instance); } @@ -29515,11 +29887,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ExtVectorElementExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -29539,7 +29911,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ExtVectorElementExpr(void* native, bool skipVTables = false) @@ -29552,7 +29924,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ExtVectorElementExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -29561,7 +29933,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ExtVectorElementExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ExtVectorElementExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ExtVectorElementExpr.__Internal*) _0.__Instance); } @@ -29675,11 +30047,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (BlockExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -29699,7 +30071,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected BlockExpr(void* native, bool skipVTables = false) @@ -29712,7 +30084,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BlockExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -29721,7 +30093,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.BlockExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.BlockExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.BlockExpr.__Internal*) _0.__Instance); } @@ -29796,11 +30168,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (AsTypeExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -29820,7 +30192,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected AsTypeExpr(void* native, bool skipVTables = false) @@ -29833,7 +30205,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AsTypeExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -29842,7 +30214,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AsTypeExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.AsTypeExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.AsTypeExpr.__Internal*) _0.__Instance); } @@ -29931,11 +30303,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (PseudoObjectExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -29955,7 +30327,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected PseudoObjectExpr(void* native, bool skipVTables = false) @@ -29968,7 +30340,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PseudoObjectExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -29977,7 +30349,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PseudoObjectExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.PseudoObjectExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.PseudoObjectExpr.__Internal*) _0.__Instance); } @@ -30141,11 +30513,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (AtomicExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -30165,7 +30537,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected AtomicExpr(void* native, bool skipVTables = false) @@ -30178,7 +30550,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AtomicExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -30187,7 +30559,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.AtomicExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.AtomicExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.AtomicExpr.__Internal*) _0.__Instance); } @@ -30436,11 +30808,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TypoExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -30460,7 +30832,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TypoExpr(void* native, bool skipVTables = false) @@ -30473,7 +30845,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypoExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -30482,7 +30854,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypoExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.TypoExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.TypoExpr.__Internal*) _0.__Instance); } } @@ -30543,11 +30915,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXOperatorCallExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -30567,7 +30939,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXOperatorCallExpr(void* native, bool skipVTables = false) @@ -30580,7 +30952,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXOperatorCallExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -30589,7 +30961,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXOperatorCallExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -30718,11 +31090,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXMemberCallExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -30742,7 +31114,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXMemberCallExpr(void* native, bool skipVTables = false) @@ -30755,7 +31127,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXMemberCallExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -30764,7 +31136,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXMemberCallExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -30868,11 +31240,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CUDAKernelCallExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -30892,7 +31264,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CUDAKernelCallExpr(void* native, bool skipVTables = false) @@ -30905,7 +31277,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CUDAKernelCallExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -30914,7 +31286,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CUDAKernelCallExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -31008,11 +31380,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXNamedCastExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -31032,7 +31404,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXNamedCastExpr(void* native, bool skipVTables = false) @@ -31045,7 +31417,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXNamedCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -31054,7 +31426,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXNamedCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -31063,7 +31435,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXNamedCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXNamedCastExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXNamedCastExpr.__Internal*) _0.__Instance); if (_0.__castName_OwnsNativeMemory) this.CastName = _0.CastName; @@ -31194,11 +31566,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXStaticCastExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -31218,7 +31590,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXStaticCastExpr(void* native, bool skipVTables = false) @@ -31231,7 +31603,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXStaticCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -31240,7 +31612,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXStaticCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXStaticCastExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXStaticCastExpr.__Internal*) _0.__Instance); } } @@ -31299,11 +31671,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXDynamicCastExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -31323,7 +31695,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXDynamicCastExpr(void* native, bool skipVTables = false) @@ -31336,7 +31708,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXDynamicCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -31345,7 +31717,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXDynamicCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXDynamicCastExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXDynamicCastExpr.__Internal*) _0.__Instance); } @@ -31416,11 +31788,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXReinterpretCastExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -31440,7 +31812,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXReinterpretCastExpr(void* native, bool skipVTables = false) @@ -31453,7 +31825,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXReinterpretCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -31462,7 +31834,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXReinterpretCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXReinterpretCastExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXReinterpretCastExpr.__Internal*) _0.__Instance); } } @@ -31520,11 +31892,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXConstCastExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -31544,7 +31916,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXConstCastExpr(void* native, bool skipVTables = false) @@ -31557,7 +31929,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXConstCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -31566,7 +31938,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXConstCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXConstCastExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXConstCastExpr.__Internal*) _0.__Instance); } } @@ -31636,11 +32008,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (UserDefinedLiteral)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -31660,7 +32032,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected UserDefinedLiteral(void* native, bool skipVTables = false) @@ -31673,7 +32045,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UserDefinedLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -31682,7 +32054,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UserDefinedLiteral.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -31788,11 +32160,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXBoolLiteralExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -31812,7 +32184,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXBoolLiteralExpr(void* native, bool skipVTables = false) @@ -31825,7 +32197,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXBoolLiteralExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -31834,7 +32206,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXBoolLiteralExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXBoolLiteralExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXBoolLiteralExpr.__Internal*) _0.__Instance); } @@ -31907,11 +32279,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXNullPtrLiteralExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -31931,7 +32303,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXNullPtrLiteralExpr(void* native, bool skipVTables = false) @@ -31944,7 +32316,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXNullPtrLiteralExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -31953,7 +32325,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXNullPtrLiteralExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXNullPtrLiteralExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXNullPtrLiteralExpr.__Internal*) _0.__Instance); } @@ -32012,11 +32384,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXStdInitializerListExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -32036,7 +32408,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXStdInitializerListExpr(void* native, bool skipVTables = false) @@ -32049,7 +32421,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXStdInitializerListExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -32058,7 +32430,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXStdInitializerListExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXStdInitializerListExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXStdInitializerListExpr.__Internal*) _0.__Instance); } @@ -32120,11 +32492,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXTypeidExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -32144,7 +32516,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXTypeidExpr(void* native, bool skipVTables = false) @@ -32157,7 +32529,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXTypeidExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -32166,7 +32538,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXTypeidExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXTypeidExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXTypeidExpr.__Internal*) _0.__Instance); } @@ -32256,11 +32628,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (MSPropertyRefExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -32280,7 +32652,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected MSPropertyRefExpr(void* native, bool skipVTables = false) @@ -32293,7 +32665,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MSPropertyRefExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -32302,7 +32674,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MSPropertyRefExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.MSPropertyRefExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.MSPropertyRefExpr.__Internal*) _0.__Instance); } @@ -32404,11 +32776,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (MSPropertySubscriptExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -32428,7 +32800,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected MSPropertySubscriptExpr(void* native, bool skipVTables = false) @@ -32441,7 +32813,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MSPropertySubscriptExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -32450,7 +32822,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MSPropertySubscriptExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.MSPropertySubscriptExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.MSPropertySubscriptExpr.__Internal*) _0.__Instance); } @@ -32542,11 +32914,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXUuidofExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -32566,7 +32938,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXUuidofExpr(void* native, bool skipVTables = false) @@ -32579,7 +32951,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXUuidofExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -32588,7 +32960,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXUuidofExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -32695,11 +33067,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXThisExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -32719,7 +33091,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXThisExpr(void* native, bool skipVTables = false) @@ -32732,7 +33104,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXThisExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -32741,7 +33113,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXThisExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXThisExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXThisExpr.__Internal*) _0.__Instance); } @@ -32815,11 +33187,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXThrowExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -32839,7 +33211,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXThrowExpr(void* native, bool skipVTables = false) @@ -32852,7 +33224,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXThrowExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -32861,7 +33233,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXThrowExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXThrowExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXThrowExpr.__Internal*) _0.__Instance); } @@ -32948,11 +33320,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXDefaultArgExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -32972,7 +33344,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXDefaultArgExpr(void* native, bool skipVTables = false) @@ -32985,7 +33357,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXDefaultArgExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -32994,7 +33366,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXDefaultArgExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXDefaultArgExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXDefaultArgExpr.__Internal*) _0.__Instance); } @@ -33068,11 +33440,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXDefaultInitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -33092,7 +33464,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXDefaultInitExpr(void* native, bool skipVTables = false) @@ -33105,7 +33477,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXDefaultInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -33114,7 +33486,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXDefaultInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXDefaultInitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXDefaultInitExpr.__Internal*) _0.__Instance); } @@ -33188,11 +33560,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXBindTemporaryExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -33212,7 +33584,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXBindTemporaryExpr(void* native, bool skipVTables = false) @@ -33225,7 +33597,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXBindTemporaryExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -33234,7 +33606,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXBindTemporaryExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXBindTemporaryExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXBindTemporaryExpr.__Internal*) _0.__Instance); } @@ -33328,11 +33700,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXConstructExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -33352,7 +33724,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXConstructExpr(void* native, bool skipVTables = false) @@ -33365,7 +33737,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXConstructExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -33374,7 +33746,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXConstructExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -33383,7 +33755,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXConstructExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -33591,11 +33963,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXInheritedCtorInitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -33615,7 +33987,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXInheritedCtorInitExpr(void* native, bool skipVTables = false) @@ -33628,7 +34000,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXInheritedCtorInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -33637,7 +34009,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXInheritedCtorInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXInheritedCtorInitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXInheritedCtorInitExpr.__Internal*) _0.__Instance); } @@ -33733,11 +34105,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXFunctionalCastExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -33757,7 +34129,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXFunctionalCastExpr(void* native, bool skipVTables = false) @@ -33770,7 +34142,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXFunctionalCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -33779,7 +34151,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXFunctionalCastExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXFunctionalCastExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXFunctionalCastExpr.__Internal*) _0.__Instance); } @@ -33875,11 +34247,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXTemporaryObjectExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -33899,7 +34271,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXTemporaryObjectExpr(void* native, bool skipVTables = false) @@ -33912,7 +34284,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXTemporaryObjectExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -33921,7 +34293,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXTemporaryObjectExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -34009,11 +34381,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (LambdaExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -34033,7 +34405,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected LambdaExpr(void* native, bool skipVTables = false) @@ -34046,7 +34418,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.LambdaExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -34055,7 +34427,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.LambdaExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -34271,11 +34643,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXScalarValueInitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -34295,7 +34667,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXScalarValueInitExpr(void* native, bool skipVTables = false) @@ -34308,7 +34680,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXScalarValueInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -34317,7 +34689,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXScalarValueInitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXScalarValueInitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXScalarValueInitExpr.__Internal*) _0.__Instance); } @@ -34412,11 +34784,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXNewExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -34436,7 +34808,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXNewExpr(void* native, bool skipVTables = false) @@ -34449,7 +34821,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXNewExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -34458,7 +34830,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXNewExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -34751,11 +35123,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXDeleteExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -34775,7 +35147,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXDeleteExpr(void* native, bool skipVTables = false) @@ -34788,7 +35160,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXDeleteExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -34797,7 +35169,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXDeleteExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXDeleteExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXDeleteExpr.__Internal*) _0.__Instance); } @@ -34932,11 +35304,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXPseudoDestructorExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -34956,7 +35328,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXPseudoDestructorExpr(void* native, bool skipVTables = false) @@ -34969,7 +35341,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXPseudoDestructorExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -34978,7 +35350,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXPseudoDestructorExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXPseudoDestructorExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXPseudoDestructorExpr.__Internal*) _0.__Instance); } @@ -35133,11 +35505,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (TypeTraitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -35157,7 +35529,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected TypeTraitExpr(void* native, bool skipVTables = false) @@ -35170,7 +35542,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypeTraitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -35179,7 +35551,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.TypeTraitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.TypeTraitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.TypeTraitExpr.__Internal*) _0.__Instance); } @@ -35253,11 +35625,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ArrayTypeTraitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -35277,7 +35649,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ArrayTypeTraitExpr(void* native, bool skipVTables = false) @@ -35290,7 +35662,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ArrayTypeTraitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -35299,7 +35671,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ArrayTypeTraitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ArrayTypeTraitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ArrayTypeTraitExpr.__Internal*) _0.__Instance); } @@ -35388,11 +35760,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ExpressionTraitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -35412,7 +35784,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ExpressionTraitExpr(void* native, bool skipVTables = false) @@ -35425,7 +35797,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ExpressionTraitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -35434,7 +35806,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ExpressionTraitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ExpressionTraitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ExpressionTraitExpr.__Internal*) _0.__Instance); } @@ -35523,7 +35895,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.OverloadExpr.FindResult managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.OverloadExpr.FindResult managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -35536,11 +35920,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (FindResult)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -35560,7 +35944,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected FindResult(void* native, bool skipVTables = false) @@ -35574,7 +35958,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.OverloadExpr.FindResult.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -35582,7 +35966,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.OverloadExpr.FindResult.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.OverloadExpr.FindResult.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.OverloadExpr.FindResult.__Internal*) _0.__Instance); } @@ -35614,11 +35998,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (OverloadExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -35638,7 +36022,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected OverloadExpr(void* native, bool skipVTables = false) @@ -35651,7 +36035,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.OverloadExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -35660,7 +36044,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.OverloadExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -35669,7 +36053,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.OverloadExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.OverloadExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.OverloadExpr.__Internal*) _0.__Instance); } @@ -35835,11 +36219,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (UnresolvedLookupExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -35859,7 +36243,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected UnresolvedLookupExpr(void* native, bool skipVTables = false) @@ -35872,7 +36256,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnresolvedLookupExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -35881,7 +36265,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnresolvedLookupExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.UnresolvedLookupExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.UnresolvedLookupExpr.__Internal*) _0.__Instance); } @@ -35960,11 +36344,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DependentScopeDeclRefExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -35984,7 +36368,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DependentScopeDeclRefExpr(void* native, bool skipVTables = false) @@ -35997,7 +36381,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DependentScopeDeclRefExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -36006,7 +36390,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DependentScopeDeclRefExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.DependentScopeDeclRefExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.DependentScopeDeclRefExpr.__Internal*) _0.__Instance); } @@ -36145,11 +36529,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ExprWithCleanups)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -36169,7 +36553,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ExprWithCleanups(void* native, bool skipVTables = false) @@ -36182,7 +36566,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ExprWithCleanups.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -36191,7 +36575,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.ExprWithCleanups.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.ExprWithCleanups.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.ExprWithCleanups.__Internal*) _0.__Instance); } @@ -36283,11 +36667,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXUnresolvedConstructExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -36307,7 +36691,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXUnresolvedConstructExpr(void* native, bool skipVTables = false) @@ -36320,7 +36704,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXUnresolvedConstructExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -36329,7 +36713,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXUnresolvedConstructExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -36503,11 +36887,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXDependentScopeMemberExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -36527,7 +36911,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXDependentScopeMemberExpr(void* native, bool skipVTables = false) @@ -36540,7 +36924,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXDependentScopeMemberExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -36549,7 +36933,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXDependentScopeMemberExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXDependentScopeMemberExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXDependentScopeMemberExpr.__Internal*) _0.__Instance); } @@ -36784,11 +37168,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (UnresolvedMemberExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -36808,7 +37192,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected UnresolvedMemberExpr(void* native, bool skipVTables = false) @@ -36821,7 +37205,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnresolvedMemberExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -36830,7 +37214,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.UnresolvedMemberExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.UnresolvedMemberExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.UnresolvedMemberExpr.__Internal*) _0.__Instance); } @@ -36971,11 +37355,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXNoexceptExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -36995,7 +37379,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXNoexceptExpr(void* native, bool skipVTables = false) @@ -37008,7 +37392,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXNoexceptExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -37017,7 +37401,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXNoexceptExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXNoexceptExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXNoexceptExpr.__Internal*) _0.__Instance); } @@ -37091,11 +37475,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (PackExpansionExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -37115,7 +37499,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected PackExpansionExpr(void* native, bool skipVTables = false) @@ -37128,7 +37512,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PackExpansionExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -37137,7 +37521,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.PackExpansionExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.PackExpansionExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.PackExpansionExpr.__Internal*) _0.__Instance); } @@ -37216,11 +37600,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (SizeOfPackExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -37240,7 +37624,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected SizeOfPackExpr(void* native, bool skipVTables = false) @@ -37253,7 +37637,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SizeOfPackExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -37262,7 +37646,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SizeOfPackExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.SizeOfPackExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.SizeOfPackExpr.__Internal*) _0.__Instance); } @@ -37389,11 +37773,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (SubstNonTypeTemplateParmExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -37413,7 +37797,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected SubstNonTypeTemplateParmExpr(void* native, bool skipVTables = false) @@ -37426,7 +37810,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SubstNonTypeTemplateParmExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -37435,7 +37819,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SubstNonTypeTemplateParmExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.SubstNonTypeTemplateParmExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.SubstNonTypeTemplateParmExpr.__Internal*) _0.__Instance); } @@ -37510,11 +37894,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (SubstNonTypeTemplateParmPackExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -37534,7 +37918,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected SubstNonTypeTemplateParmPackExpr(void* native, bool skipVTables = false) @@ -37547,7 +37931,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SubstNonTypeTemplateParmPackExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -37556,7 +37940,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.SubstNonTypeTemplateParmPackExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.SubstNonTypeTemplateParmPackExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.SubstNonTypeTemplateParmPackExpr.__Internal*) _0.__Instance); } @@ -37632,11 +38016,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (FunctionParmPackExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -37656,7 +38040,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected FunctionParmPackExpr(void* native, bool skipVTables = false) @@ -37669,7 +38053,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FunctionParmPackExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -37678,7 +38062,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.FunctionParmPackExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.FunctionParmPackExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.FunctionParmPackExpr.__Internal*) _0.__Instance); } @@ -37758,7 +38142,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.AST.MaterializeTemporaryExpr.ExtraState managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.AST.MaterializeTemporaryExpr.ExtraState managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -37771,11 +38167,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ExtraState)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -37795,7 +38191,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ExtraState(void* native, bool skipVTables = false) @@ -37809,7 +38205,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MaterializeTemporaryExpr.ExtraState.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -37817,7 +38213,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MaterializeTemporaryExpr.ExtraState.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.MaterializeTemporaryExpr.ExtraState.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.MaterializeTemporaryExpr.ExtraState.__Internal*) _0.__Instance); } @@ -37849,11 +38245,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (MaterializeTemporaryExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -37873,7 +38269,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected MaterializeTemporaryExpr(void* native, bool skipVTables = false) @@ -37886,7 +38282,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MaterializeTemporaryExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -37895,7 +38291,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.MaterializeTemporaryExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.MaterializeTemporaryExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.MaterializeTemporaryExpr.__Internal*) _0.__Instance); } @@ -38002,11 +38398,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CXXFoldExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -38026,7 +38422,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CXXFoldExpr(void* native, bool skipVTables = false) @@ -38039,7 +38435,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXFoldExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -38048,7 +38444,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CXXFoldExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CXXFoldExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CXXFoldExpr.__Internal*) _0.__Instance); } @@ -38220,11 +38616,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CoroutineSuspendExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -38244,7 +38640,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CoroutineSuspendExpr(void* native, bool skipVTables = false) @@ -38257,7 +38653,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoroutineSuspendExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -38266,7 +38662,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoroutineSuspendExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance, klass); } @@ -38275,7 +38671,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoroutineSuspendExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CoroutineSuspendExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CoroutineSuspendExpr.__Internal*) _0.__Instance); } @@ -38417,11 +38813,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CoawaitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -38441,7 +38837,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CoawaitExpr(void* native, bool skipVTables = false) @@ -38454,7 +38850,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoawaitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -38463,7 +38859,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoawaitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CoawaitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CoawaitExpr.__Internal*) _0.__Instance); } @@ -38538,11 +38934,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (DependentCoawaitExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -38562,7 +38958,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected DependentCoawaitExpr(void* native, bool skipVTables = false) @@ -38575,7 +38971,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DependentCoawaitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -38584,7 +38980,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.DependentCoawaitExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.DependentCoawaitExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.DependentCoawaitExpr.__Internal*) _0.__Instance); } @@ -38678,11 +39074,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CoyieldExpr)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -38702,7 +39098,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CoyieldExpr(void* native, bool skipVTables = false) @@ -38715,7 +39111,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoyieldExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -38724,7 +39120,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.AST.CoyieldExpr.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.AST.CoyieldExpr.__Internal*) __Instance) = *((global::CppSharp.Parser.AST.CoyieldExpr.__Internal*) _0.__Instance); } @@ -38824,7 +39220,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.ParserTargetInfo managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.ParserTargetInfo managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -38837,11 +39245,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ParserTargetInfo)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -38861,7 +39269,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ParserTargetInfo(void* native, bool skipVTables = false) @@ -38875,7 +39283,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.ParserTargetInfo.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -38883,7 +39291,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.ParserTargetInfo.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -39484,7 +39892,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.Parser managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.Parser managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -39497,11 +39917,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Parser)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -39521,7 +39941,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Parser(void* native, bool skipVTables = false) @@ -39534,7 +39954,7 @@ namespace CppSharp public unsafe partial class CppParserOptions : IDisposable { - [StructLayout(LayoutKind.Sequential, Size = 280)] + [StructLayout(LayoutKind.Sequential, Size = 304)] public partial struct __Internal { internal global::Std.Vector.__Internalc__N_std_S_vector____N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C___N_std_S_allocator__S0_ Arguments; @@ -39545,6 +39965,7 @@ namespace CppSharp internal global::Std.Vector.__Internalc__N_std_S_vector____N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C___N_std_S_allocator__S0_ Defines; internal global::Std.Vector.__Internalc__N_std_S_vector____N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C___N_std_S_allocator__S0_ Undefines; internal global::Std.Vector.__Internalc__N_std_S_vector____N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C___N_std_S_allocator__S0_ SupportedStdTypes; + internal global::Std.Vector.__Internalc__N_std_S_vector____N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C___N_std_S_allocator__S0_ SupportedFunctionTemplates; internal __IntPtr ASTContext; internal int toolSetToUse; internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C targetTriple; @@ -39639,6 +40060,15 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser.dll", EntryPoint = "?clearSupportedStdTypes@CppParserOptions@CppParser@CppSharp@@QEAAXXZ", CallingConvention = __CallingConvention.Cdecl)] internal static extern void ClearSupportedStdTypes(__IntPtr __instance); + [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser.dll", EntryPoint = "?getSupportedFunctionTemplates@CppParserOptions@CppParser@CppSharp@@QEAAPEBDI@Z", CallingConvention = __CallingConvention.Cdecl)] + internal static extern __IntPtr GetSupportedFunctionTemplates(__IntPtr __instance, uint i); + + [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser.dll", EntryPoint = "?addSupportedFunctionTemplates@CppParserOptions@CppParser@CppSharp@@QEAAXPEBD@Z", CallingConvention = __CallingConvention.Cdecl)] + internal static extern void AddSupportedFunctionTemplates(__IntPtr __instance, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(CppSharp.Runtime.UTF8Marshaller))] string s); + + [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser.dll", EntryPoint = "?clearSupportedFunctionTemplates@CppParserOptions@CppParser@CppSharp@@QEAAXXZ", CallingConvention = __CallingConvention.Cdecl)] + internal static extern void ClearSupportedFunctionTemplates(__IntPtr __instance); + [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser.dll", EntryPoint = "?getClangVersion@CppParserOptions@CppParser@CppSharp@@QEAA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ", CallingConvention = __CallingConvention.Cdecl)] internal static extern void GetClangVersion(__IntPtr __instance, __IntPtr @return); @@ -39665,11 +40095,26 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser.dll", EntryPoint = "?getSupportedStdTypesCount@CppParserOptions@CppParser@CppSharp@@QEAAIXZ", CallingConvention = __CallingConvention.Cdecl)] internal static extern uint GetSupportedStdTypesCount(__IntPtr __instance); + + [SuppressUnmanagedCodeSecurity, DllImport("CppSharp.CppParser.dll", EntryPoint = "?getSupportedFunctionTemplatesCount@CppParserOptions@CppParser@CppSharp@@QEAAIXZ", CallingConvention = __CallingConvention.Cdecl)] + internal static extern uint GetSupportedFunctionTemplatesCount(__IntPtr __instance); } public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.CppParserOptions managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.CppParserOptions managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -39682,11 +40127,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CppParserOptions)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -39706,7 +40151,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CppParserOptions(void* native, bool skipVTables = false) @@ -39720,7 +40165,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.CppParserOptions.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -39728,7 +40173,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.CppParserOptions.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -39883,6 +40328,22 @@ namespace CppSharp __Internal.ClearSupportedStdTypes(__Instance); } + public string GetSupportedFunctionTemplates(uint i) + { + var __ret = __Internal.GetSupportedFunctionTemplates(__Instance, i); + return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret); + } + + public void AddSupportedFunctionTemplates(string s) + { + __Internal.AddSupportedFunctionTemplates(__Instance, s); + } + + public void ClearSupportedFunctionTemplates() + { + __Internal.ClearSupportedFunctionTemplates(__Instance); + } + public global::CppSharp.Parser.AST.ASTContext ASTContext { get @@ -40112,6 +40573,15 @@ namespace CppSharp return __ret; } } + + public uint SupportedFunctionTemplatesCount + { + get + { + var __ret = __Internal.GetSupportedFunctionTemplatesCount(__Instance); + return __ret; + } + } } public unsafe partial class CppLinkerOptions : IDisposable @@ -40171,7 +40641,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.CppLinkerOptions managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.CppLinkerOptions managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -40184,11 +40666,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CppLinkerOptions)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -40208,7 +40690,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CppLinkerOptions(void* native, bool skipVTables = false) @@ -40222,7 +40704,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.CppLinkerOptions.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -40230,7 +40712,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.CppLinkerOptions.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -40356,7 +40838,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.ParserDiagnostic managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.ParserDiagnostic managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -40369,11 +40863,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ParserDiagnostic)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -40393,7 +40887,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ParserDiagnostic(void* native, bool skipVTables = false) @@ -40407,7 +40901,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.ParserDiagnostic.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -40415,7 +40909,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.ParserDiagnostic.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -40556,7 +41050,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.ParserResult managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.ParserResult managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -40569,11 +41075,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ParserResult)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -40593,7 +41099,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ParserResult(void* native, bool skipVTables = false) @@ -40607,7 +41113,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.ParserResult.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); __Internal.ctor(__Instance); } @@ -40615,7 +41121,7 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.ParserResult.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); var __arg0 = _0.__Instance; @@ -40757,7 +41263,19 @@ namespace CppSharp public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::CppSharp.Parser.ClangParser managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::CppSharp.Parser.ClangParser managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -40770,11 +41288,11 @@ namespace CppSharp { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (ClangParser)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -40794,7 +41312,7 @@ namespace CppSharp : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected ClangParser(void* native, bool skipVTables = false) @@ -40808,14 +41326,14 @@ namespace CppSharp { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.ClangParser.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } public ClangParser(global::CppSharp.Parser.ClangParser _0) { __Instance = Marshal.AllocHGlobal(sizeof(global::CppSharp.Parser.ClangParser.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); *((global::CppSharp.Parser.ClangParser.__Internal*) __Instance) = *((global::CppSharp.Parser.ClangParser.__Internal*) _0.__Instance); } @@ -40896,13 +41414,492 @@ namespace CppSharp namespace Std { - namespace Pair + namespace Vector + { + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_NativeLibrary___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_NativeLibrary___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector____N_CppSharp_N_CppParser_S_ParserDiagnostic___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_S_ParserDiagnostic___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_HTMLStartTagComment_S_Attribute___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_N_AST_S_HTMLStartTagComment_S_Attribute___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_InlineCommandComment_S_Argument___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_N_AST_S_InlineCommandComment_S_Argument___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_VerbatimBlockLineComment___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_VerbatimBlockLineComment___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_BlockCommandComment_S_Argument___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_N_AST_S_BlockCommandComment_S_Argument___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_InlineContentComment___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_InlineContentComment___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Expr___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Expr___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Stmt___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Stmt___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TranslationUnit___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_TranslationUnit___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_MacroDefinition___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_MacroDefinition___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_VarTemplateSpecialization___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_VarTemplateSpecialization___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_ExpressionObsolete___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_ExpressionObsolete___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_ClassTemplateSpecialization___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_ClassTemplateSpecialization___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Enumeration_S_Item___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Enumeration_S_Item___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_LayoutBase___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_N_AST_S_LayoutBase___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_LayoutField___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_N_AST_S_LayoutField___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_VTableComponent___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_N_AST_S_VTableComponent___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_VFTableInfo___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_N_AST_S_VFTableInfo___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_AccessSpecifierDecl___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_AccessSpecifierDecl___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_TemplateArgument___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_N_AST_S_TemplateArgument___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_FunctionTemplateSpecialization___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_FunctionTemplateSpecialization___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Parameter___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Parameter___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Method___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Method___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Field___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Field___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_BaseClassSpecifier___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_BaseClassSpecifier___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Friend___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Friend___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Variable___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Variable___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TypeAlias___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_TypeAlias___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TypedefDecl___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_TypedefDecl___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Template___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Template___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Class___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Class___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Function___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Function___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Enumeration___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Enumeration___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Namespace___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Namespace___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_BlockContentComment___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_BlockContentComment___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; + } + } + +} +namespace Std +{ + namespace CompressedPair + { + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_NativeLibrary___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_S_ParserDiagnostic___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_N_AST_S_HTMLStartTagComment_S_Attribute___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_N_AST_S_InlineCommandComment_S_Argument___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_VerbatimBlockLineComment___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_N_AST_S_BlockCommandComment_S_Argument___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_InlineContentComment___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Expr___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Stmt___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_TranslationUnit___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_MacroDefinition___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_VarTemplateSpecialization___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_ExpressionObsolete___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_ClassTemplateSpecialization___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Namespace___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Enumeration___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Enumeration_S_Item___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Function___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Class___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_N_AST_S_LayoutBase___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_N_AST_S_LayoutField___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_N_AST_S_VFTableInfo___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_N_AST_S_VTableComponent___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_AccessSpecifierDecl___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Method___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_N_AST_S_TemplateArgument___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_FunctionTemplateSpecialization___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Parameter___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Field___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_BaseClassSpecifier___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 16, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_std_S__Tree_node____N_std_S_pair__1__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C____N_CppSharp_N_CppParser_N_AST_S_Declaration__v___N_std_S__Tree_val____N_std_S__Tree_simple_types__S2__Vb1 + { + internal global::Std.TreeVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 16, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_less____N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C___N_std_S__Compressed_pair____N_std_S_allocator____N_std_S__Tree_node____N_std_S_pair__1S1_____N_CppSharp_N_CppParser_N_AST_S_Declaration__v___N_std_S__Tree_val____N_std_S__Tree_simple_types__S7__Vb1_Vb1 + { + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_std_S__Tree_node____N_std_S_pair__1__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C____N_CppSharp_N_CppParser_N_AST_S_Declaration__v___N_std_S__Tree_val____N_std_S__Tree_simple_types__S2__Vb1 _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Friend___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Variable___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_TypeAlias___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_TypedefDecl___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Template___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_BlockContentComment___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + + [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 + { + internal global::Std.VectorVal.__Internal _Myval2; + } + } + +} +namespace Std +{ + namespace Map { - [StructLayout(LayoutKind.Sequential, Size = 40, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_pair__1__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C____N_CppSharp_N_CppParser_N_AST_S_Declaration + [StructLayout(LayoutKind.Sequential, Size = 16, Pack = 8)] + public unsafe partial struct __Internalc__N_std_S_map____N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_less__S0____N_std_S_allocator____N_std_S_pair__1S0__S3_ { - internal global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C first; - internal __IntPtr second; + internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_less____N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C___N_std_S__Compressed_pair____N_std_S_allocator____N_std_S__Tree_node____N_std_S_pair__1S1_____N_CppSharp_N_CppParser_N_AST_S_Declaration__v___N_std_S__Tree_val____N_std_S__Tree_simple_types__S7__Vb1_Vb1 _Mypair; } } } diff --git a/src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/Std.cs b/src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/Std.cs index 5168059f..e8dda782 100644 --- a/src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/Std.cs +++ b/src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/Std.cs @@ -19,245 +19,17 @@ namespace Std { namespace Vector { - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_BlockContentComment___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_BlockContentComment___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Namespace___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Namespace___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Enumeration___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Enumeration___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Function___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Function___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Class___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Class___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Template___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Template___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TypedefDecl___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_TypedefDecl___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TypeAlias___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_TypeAlias___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Variable___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Variable___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Friend___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Friend___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_BaseClassSpecifier___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_BaseClassSpecifier___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Field___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Field___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Method___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Method___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Parameter___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Parameter___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_FunctionTemplateSpecialization___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_FunctionTemplateSpecialization___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_TemplateArgument___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_N_AST_S_TemplateArgument___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_AccessSpecifierDecl___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_AccessSpecifierDecl___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_VFTableInfo___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_N_AST_S_VFTableInfo___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_VTableComponent___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_N_AST_S_VTableComponent___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_LayoutField___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_N_AST_S_LayoutField___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_LayoutBase___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_N_AST_S_LayoutBase___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Enumeration_S_Item___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Enumeration_S_Item___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] public unsafe partial struct __Internalc__N_std_S_vector____N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C___N_std_S_allocator__S0_ { internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; } - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_ClassTemplateSpecialization___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_ClassTemplateSpecialization___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_ExpressionObsolete___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_ExpressionObsolete___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_VarTemplateSpecialization___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_VarTemplateSpecialization___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_MacroDefinition___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_MacroDefinition___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TranslationUnit___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_TranslationUnit___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Stmt___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Stmt___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Expr___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Expr___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_InlineContentComment___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_InlineContentComment___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_BlockCommandComment_S_Argument___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_N_AST_S_BlockCommandComment_S_Argument___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] public unsafe partial struct __Internalc__N_std_S_vector__i___N_std_S_allocator__i { internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator__i___N_std_S__Vector_val____N_std_S__Simple_types__i_Vb1 _Mypair; } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_VerbatimBlockLineComment___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_VerbatimBlockLineComment___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_InlineCommandComment_S_Argument___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_N_AST_S_InlineCommandComment_S_Argument___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector____N_CppSharp_N_CppParser_N_AST_S_HTMLStartTagComment_S_Attribute___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_N_AST_S_HTMLStartTagComment_S_Attribute___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector____N_CppSharp_N_CppParser_S_ParserDiagnostic___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_S_ParserDiagnostic___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_vector_____N_CppSharp_N_CppParser_N_AST_S_NativeLibrary___N_std_S_allocator__S0_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_NativeLibrary___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 _Mypair; - } } namespace VectorVal @@ -279,163 +51,7 @@ namespace Std [StructLayout(LayoutKind.Sequential, Size = 32, Pack = 8)] public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator__C___N_std_S__String_val____N_std_S__Simple_types__C_Vb1 { - internal global::Std.StringVal.__Internalc__N_std_S__String_val____N_std_S__Simple_types__C _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_BlockContentComment___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Template___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_TypedefDecl___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_TypeAlias___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Variable___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Friend___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 16, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_less____N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C___N_std_S__Compressed_pair____N_std_S_allocator____N_std_S__Tree_node____N_std_S_pair__1S1_____N_CppSharp_N_CppParser_N_AST_S_Declaration__v___N_std_S__Tree_val____N_std_S__Tree_simple_types__S7__Vb1_Vb1 - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_std_S__Tree_node____N_std_S_pair__1__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C____N_CppSharp_N_CppParser_N_AST_S_Declaration__v___N_std_S__Tree_val____N_std_S__Tree_simple_types__S2__Vb1 _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 16, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_std_S__Tree_node____N_std_S_pair__1__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C____N_CppSharp_N_CppParser_N_AST_S_Declaration__v___N_std_S__Tree_val____N_std_S__Tree_simple_types__S2__Vb1 - { - internal global::Std.TreeVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_BaseClassSpecifier___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Field___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Parameter___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_FunctionTemplateSpecialization___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_N_AST_S_TemplateArgument___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Method___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_AccessSpecifierDecl___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_N_AST_S_VTableComponent___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_N_AST_S_VFTableInfo___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_N_AST_S_LayoutField___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_N_AST_S_LayoutBase___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Class___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Function___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Enumeration_S_Item___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Enumeration___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Namespace___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; + internal global::Std.StringVal.__Internal _Myval2; } [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] @@ -444,95 +60,11 @@ namespace Std internal global::Std.VectorVal.__Internal _Myval2; } - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_ClassTemplateSpecialization___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_ExpressionObsolete___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_VarTemplateSpecialization___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_MacroDefinition___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_TranslationUnit___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Stmt___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_Expr___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_InlineContentComment___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_N_AST_S_BlockCommandComment_S_Argument___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator__i___N_std_S__Vector_val____N_std_S__Simple_types__i_Vb1 { internal global::Std.VectorVal.__Internal _Myval2; } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_VerbatimBlockLineComment___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_N_AST_S_InlineCommandComment_S_Argument___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_N_AST_S_HTMLStartTagComment_S_Attribute___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator____N_CppSharp_N_CppParser_S_ParserDiagnostic___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } - - [StructLayout(LayoutKind.Sequential, Size = 24, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__Compressed_pair____N_std_S_allocator_____N_CppSharp_N_CppParser_N_AST_S_NativeLibrary___N_std_S__Vector_val____N_std_S__Simple_types__S1__Vb1 - { - internal global::Std.VectorVal.__Internal _Myval2; - } } namespace Allocator @@ -549,7 +81,19 @@ namespace Std { public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary> NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary>(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary> NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary>(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::Std.Allocator<_Ty> managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::Std.Allocator<_Ty> managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -562,11 +106,11 @@ namespace Std { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (Allocator<_Ty>)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -586,7 +130,7 @@ namespace Std : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected Allocator(void* native, bool skipVTables = false) @@ -603,7 +147,7 @@ namespace Std { __Instance = Marshal.AllocHGlobal(sizeof(global::Std.Allocator.__Internal)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); global::Std.Allocator.__Internal.ctorc__N_std_S_allocator__C(__Instance); return; } @@ -645,14 +189,6 @@ namespace Std namespace Std { - namespace Map - { - [StructLayout(LayoutKind.Sequential, Size = 16, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S_map____N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_S_less__S0____N_std_S_allocator____N_std_S_pair__1S0__S3_ - { - internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_less____N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C___N_std_S__Compressed_pair____N_std_S_allocator____N_std_S__Tree_node____N_std_S_pair__1S1_____N_CppSharp_N_CppParser_N_AST_S_Declaration__v___N_std_S__Tree_val____N_std_S__Tree_simple_types__S7__Vb1_Vb1 _Mypair; - } - } } namespace Std @@ -689,7 +225,19 @@ namespace Std { public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary> NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary>(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary> NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary>(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::Std.BasicString<_Elem, _Traits, _Alloc> managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::Std.BasicString<_Elem, _Traits, _Alloc> managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -702,11 +250,11 @@ namespace Std { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (BasicString<_Elem, _Traits, _Alloc>)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -726,7 +274,7 @@ namespace Std : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected BasicString(void* native, bool skipVTables = false) @@ -745,7 +293,7 @@ namespace Std { __Instance = Marshal.AllocHGlobal(sizeof(global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C)); __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C.ctorc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C(__Instance); return; } @@ -786,7 +334,7 @@ namespace Std namespace StringVal { [StructLayout(LayoutKind.Sequential, Size = 32, Pack = 8)] - public unsafe partial struct __Internalc__N_std_S__String_val____N_std_S__Simple_types__C + public unsafe partial struct __Internal { internal global::Std.StringVal.Bxty.__Internal _Bx; internal ulong _Mysize; @@ -823,7 +371,19 @@ namespace Std { public __IntPtr __Instance { get; protected set; } - internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary> NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary>(); + internal static readonly new global::System.Collections.Concurrent.ConcurrentDictionary> NativeToManagedMap = + new global::System.Collections.Concurrent.ConcurrentDictionary>(); + + internal static void __RecordNativeToManagedMapping(IntPtr native, global::Std.CharTraits<_Elem> managed) + { + NativeToManagedMap[native] = managed; + } + + internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::Std.CharTraits<_Elem> managed) + { + + return NativeToManagedMap.TryGetValue(native, out managed); + } protected bool __ownsNativeInstance; @@ -836,11 +396,11 @@ namespace Std { if (native == __IntPtr.Zero) return null; - if (NativeToManagedMap.TryGetValue(native, out var managed)) + if (__TryGetNativeToManagedMapping(native, out var managed)) return (CharTraits<_Elem>)managed; var result = __CreateInstance(native, skipVTables); if (saveInstance) - NativeToManagedMap[native] = result; + __RecordNativeToManagedMapping(native, result); return result; } @@ -860,7 +420,7 @@ namespace Std : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; - NativeToManagedMap[__Instance] = this; + __RecordNativeToManagedMapping(__Instance, this); } protected CharTraits(void* native, bool skipVTables = false) diff --git a/src/CppParser/CppParser.cpp b/src/CppParser/CppParser.cpp index 5858e89a..00664581 100644 --- a/src/CppParser/CppParser.cpp +++ b/src/CppParser/CppParser.cpp @@ -39,6 +39,7 @@ DEF_VECTOR_STRING(CppParserOptions, SystemIncludeDirs) DEF_VECTOR_STRING(CppParserOptions, Defines) DEF_VECTOR_STRING(CppParserOptions, Undefines) DEF_VECTOR_STRING(CppParserOptions, SupportedStdTypes) +DEF_VECTOR_STRING(CppParserOptions, SupportedFunctionTemplates) ParserResult::ParserResult() : targetInfo(0) diff --git a/src/CppParser/CppParser.h b/src/CppParser/CppParser.h index f2ee6b6c..922cabfb 100644 --- a/src/CppParser/CppParser.h +++ b/src/CppParser/CppParser.h @@ -36,6 +36,7 @@ struct CS_API CppParserOptions VECTOR_STRING(Defines) VECTOR_STRING(Undefines) VECTOR_STRING(SupportedStdTypes) + VECTOR_STRING(SupportedFunctionTemplates) CppSharp::CppParser::AST::ASTContext* ASTContext; diff --git a/src/CppParser/Parser.cpp b/src/CppParser/Parser.cpp index 2a28d2f8..a64b091c 100644 --- a/src/CppParser/Parser.cpp +++ b/src/CppParser/Parser.cpp @@ -77,6 +77,7 @@ Parser::Parser(CppParserOptions* Opts) : opts(Opts), index(0) supportedStdTypes.insert(SupportedStdType); supportedStdTypes.insert("allocator"); supportedStdTypes.insert("basic_string"); + supportedFunctionTemplates = { Opts->SupportedFunctionTemplates.begin(), Opts->SupportedFunctionTemplates.end() }; } LayoutField Parser::WalkVTablePointer(Class* Class, @@ -1628,6 +1629,12 @@ FunctionTemplate* Parser::WalkFunctionTemplate(const clang::FunctionTemplateDecl NS->Templates.push_back(FT); + std::string qualifiedName; + llvm::raw_string_ostream as(qualifiedName); + TD->printQualifiedName(as); + if (supportedFunctionTemplates.find(as.str()) == supportedFunctionTemplates.end()) + return FT; + for (auto&& FD : TD->specializations()) { if (auto MD = dyn_cast(FD)) diff --git a/src/CppParser/Parser.h b/src/CppParser/Parser.h index 529a37a8..da0ddcc6 100644 --- a/src/CppParser/Parser.h +++ b/src/CppParser/Parser.h @@ -189,6 +189,7 @@ private: std::unordered_map walkedNonTypeTemplateParameters; std::unordered_map walkedParameters; std::unordered_set supportedStdTypes; + std::unordered_set supportedFunctionTemplates; }; } } \ No newline at end of file diff --git a/tests/CSharp/CSharp.Gen.cs b/tests/CSharp/CSharp.Gen.cs index 3c76f9f4..25d4205b 100644 --- a/tests/CSharp/CSharp.Gen.cs +++ b/tests/CSharp/CSharp.Gen.cs @@ -25,6 +25,7 @@ namespace CppSharp.Tests base.Setup(driver); driver.ParserOptions.UnityBuild = true; + driver.ParserOptions.AddSupportedFunctionTemplates("FunctionTemplate"); } public override void SetupPasses(Driver driver)