From 2ecd9528ff90f0494078868e98385c898c072560 Mon Sep 17 00:00:00 2001 From: deadlocklogic <57906342+deadlocklogic@users.noreply.github.com> Date: Sun, 17 Dec 2023 13:08:34 +0200 Subject: [PATCH] regenerated bindings (#1813) * regenerated bindings * regenerated bindings after rebase * Directory.Build.props: support C# 10.0 --- Directory.Build.props | 114 +++---- .../CppSharp.CppParser.cs | 313 +++++++++--------- .../CSharp/i686-apple-darwin12.4.0/Std.cs | 13 +- .../i686-pc-win32-msvc/CppSharp.CppParser.cs | 313 +++++++++--------- .../Bindings/CSharp/i686-pc-win32-msvc/Std.cs | 22 +- .../CppSharp.CppParser.cs | 313 +++++++++--------- .../CSharp/x86_64-apple-darwin12.4.0/Std.cs | 13 +- .../CppSharp.CppParser.cs | 313 +++++++++--------- .../CSharp/x86_64-linux-gnu-cxx11abi/Std.cs | 13 +- .../x86_64-linux-gnu/CppSharp.CppParser.cs | 313 +++++++++--------- .../Bindings/CSharp/x86_64-linux-gnu/Std.cs | 13 +- .../CppSharp.CppParser.cs | 313 +++++++++--------- .../CSharp/x86_64-pc-win32-msvc/Std.cs | 22 +- 13 files changed, 1083 insertions(+), 1005 deletions(-) diff --git a/Directory.Build.props b/Directory.Build.props index 2a32266a..0dc6c392 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,58 +1,58 @@ - - - - - $(MSBuildThisFileDirectory) - x86;x64 - false - true - MIT - https://github.com/mono/CppSharp - $(GITHUB_SHA) - João Matos, Dimitar Dobrev, Jose Torres - João Matos, Dimitar Dobrev - $(NBGV_Version) - $(NBGV_AssemblyVersion) - $(NBGV_AssemblyFileVersion) - $(NBGV_AssemblyInformationalVersion) - false - $(RootDir)build\ - $(BuildDir)obj\ - $(BuildDir)gen\ - $(RootDir)src\ - $(TargetFramework) - $(ObjDir)$(MSBuildProjectName)\ - $(RootDir)bin\ - $(BaseOutputPath)$(Configuration)_$(PlatformTarget)\ - $(BuildDir)$(PremakeAction)\ - $(ActionDir)projects\ - $(RootDir)artifacts\package\ - $(OutputPath) - 9.0 - 4 - dotnet - dll - "$(MSBuildProgramFiles32)\dotnet\dotnet.exe" - "$(ProgramW6432)\dotnet\dotnet.exe" - win - linux - osx - $(RID)-$(PlatformTarget) - - - - true - full - false - - - - exe - - - - - - - + + + + + $(MSBuildThisFileDirectory) + x86;x64 + false + true + MIT + https://github.com/mono/CppSharp + $(GITHUB_SHA) + João Matos, Dimitar Dobrev, Jose Torres + João Matos, Dimitar Dobrev + $(NBGV_Version) + $(NBGV_AssemblyVersion) + $(NBGV_AssemblyFileVersion) + $(NBGV_AssemblyInformationalVersion) + false + $(RootDir)build\ + $(BuildDir)obj\ + $(BuildDir)gen\ + $(RootDir)src\ + $(TargetFramework) + $(ObjDir)$(MSBuildProjectName)\ + $(RootDir)bin\ + $(BaseOutputPath)$(Configuration)_$(PlatformTarget)\ + $(BuildDir)$(PremakeAction)\ + $(ActionDir)projects\ + $(RootDir)artifacts\package\ + $(OutputPath) + 10.0 + 4 + dotnet + dll + "$(MSBuildProgramFiles32)\dotnet\dotnet.exe" + "$(ProgramW6432)\dotnet\dotnet.exe" + win + linux + osx + $(RID)-$(PlatformTarget) + + + + true + full + false + + + + exe + + + + + + + \ No newline at end of file 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 fe8c0db5..2a5e810f 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 @@ -14,6 +14,7 @@ using System.Runtime.CompilerServices; [assembly:InternalsVisibleTo("CppSharp.Parser")] #pragma warning disable CS0109 // Member does not hide an inherited member; new keyword is not required +#pragma warning disable CS9084 // Struct member returns 'this' or other instance members by reference namespace CppSharp { @@ -187,12 +188,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -378,12 +379,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -602,7 +603,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -850,7 +851,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -1043,12 +1044,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -1151,7 +1152,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -1323,7 +1324,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -1462,7 +1463,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -1589,7 +1590,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -1716,7 +1717,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -1847,7 +1848,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -2018,12 +2019,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -2117,7 +2118,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -2416,12 +2417,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -2529,7 +2530,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -2673,7 +2674,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -2786,7 +2787,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -2918,12 +2919,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -3017,7 +3018,7 @@ namespace CppSharp } private SourceLocation.__Internal __instance; - internal SourceLocation.__Internal __Instance => __instance; + internal ref SourceLocation.__Internal __Instance => ref __instance; internal static SourceLocation __CreateInstance(__IntPtr native, bool skipVTables = false) { @@ -3040,6 +3041,14 @@ namespace CppSharp __instance = *(global::CppSharp.Parser.SourceLocation.__Internal*) native; } + public SourceLocation() + { + fixed (__Internal* __instancePtr = &__instance) + { + __Internal.ctor(new __IntPtr(__instancePtr)); + } + } + public SourceLocation(uint ID) : this() { @@ -3175,12 +3184,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -3402,12 +3411,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -3543,12 +3552,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -3695,12 +3704,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -4082,7 +4091,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -4826,12 +4835,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -4997,7 +5006,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -5167,7 +5176,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -5313,7 +5322,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -5688,7 +5697,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -6574,12 +6583,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -7147,7 +7156,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -7554,7 +7563,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -7693,7 +7702,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -7813,7 +7822,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -7946,7 +7955,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -8082,12 +8091,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -8232,7 +8241,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -8344,7 +8353,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -8503,7 +8512,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -8650,7 +8659,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -8804,7 +8813,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -9047,7 +9056,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -9507,7 +9516,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -9878,7 +9887,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -9985,7 +9994,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -10189,7 +10198,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -10357,12 +10366,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -10535,7 +10544,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -10708,7 +10717,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -10819,12 +10828,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -10989,12 +10998,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -11141,12 +11150,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -11318,12 +11327,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -11494,12 +11503,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -11687,12 +11696,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -12084,7 +12093,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -12505,7 +12514,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -12674,7 +12683,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -12795,7 +12804,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -12962,7 +12971,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -13123,7 +13132,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -13265,7 +13274,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -13486,7 +13495,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -13698,7 +13707,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -13902,7 +13911,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -14038,7 +14047,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -14209,12 +14218,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -14423,7 +14432,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -14612,7 +14621,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -14793,7 +14802,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -14911,7 +14920,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -15041,7 +15050,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -15165,12 +15174,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -15310,7 +15319,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -15466,7 +15475,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -15653,7 +15662,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -15840,12 +15849,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -16148,12 +16157,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -16325,7 +16334,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -16608,7 +16617,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -18966,7 +18975,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -19277,12 +19286,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -19428,7 +19437,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -19554,7 +19563,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -20255,12 +20264,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -20416,7 +20425,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -21279,12 +21288,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -22107,12 +22116,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -23860,7 +23869,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -25233,7 +25242,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -26539,7 +26548,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -26929,7 +26938,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -28812,12 +28821,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -29068,12 +29077,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -29178,12 +29187,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -31346,7 +31355,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -31523,7 +31532,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -31675,7 +31684,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -32450,7 +32459,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -33366,7 +33375,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -34172,7 +34181,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -34714,7 +34723,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -34850,7 +34859,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -35256,7 +35265,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -36398,12 +36407,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -37155,7 +37164,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -38663,12 +38672,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -39755,12 +39764,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -40641,12 +40650,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -41182,12 +41191,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -41381,12 +41390,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -41595,12 +41604,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -41806,12 +41815,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; 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 c7e2920a..f6c86134 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 @@ -16,6 +16,7 @@ using __IntPtr = global::System.IntPtr; [assembly:InternalsVisibleTo("CppSharp.CppParser")] #pragma warning disable CS0109 // Member does not hide an inherited member; new keyword is not required +#pragma warning disable CS9084 // Struct member returns 'this' or other instance members by reference namespace Std { @@ -147,12 +148,12 @@ namespace Std public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -280,12 +281,12 @@ namespace Std public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -485,12 +486,12 @@ namespace Std public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) 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 076c7153..110662dd 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 @@ -14,6 +14,7 @@ using System.Runtime.CompilerServices; [assembly:InternalsVisibleTo("CppSharp.Parser")] #pragma warning disable CS0109 // Member does not hide an inherited member; new keyword is not required +#pragma warning disable CS9084 // Struct member returns 'this' or other instance members by reference namespace CppSharp { @@ -187,12 +188,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -378,12 +379,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -602,7 +603,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -850,7 +851,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -1043,12 +1044,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -1151,7 +1152,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -1323,7 +1324,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -1462,7 +1463,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -1589,7 +1590,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -1716,7 +1717,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -1847,7 +1848,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -2018,12 +2019,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -2117,7 +2118,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -2416,12 +2417,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -2529,7 +2530,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -2673,7 +2674,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -2786,7 +2787,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -2918,12 +2919,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -3017,7 +3018,7 @@ namespace CppSharp } private SourceLocation.__Internal __instance; - internal SourceLocation.__Internal __Instance => __instance; + internal ref SourceLocation.__Internal __Instance => ref __instance; internal static SourceLocation __CreateInstance(__IntPtr native, bool skipVTables = false) { @@ -3040,6 +3041,14 @@ namespace CppSharp __instance = *(global::CppSharp.Parser.SourceLocation.__Internal*) native; } + public SourceLocation() + { + fixed (__Internal* __instancePtr = &__instance) + { + __Internal.ctor(new __IntPtr(__instancePtr)); + } + } + public SourceLocation(uint ID) : this() { @@ -3175,12 +3184,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -3402,12 +3411,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -3543,12 +3552,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -3695,12 +3704,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -4082,7 +4091,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -4826,12 +4835,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -4997,7 +5006,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -5167,7 +5176,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -5313,7 +5322,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -5688,7 +5697,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -6574,12 +6583,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -7147,7 +7156,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -7554,7 +7563,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -7693,7 +7702,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -7813,7 +7822,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -7946,7 +7955,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -8082,12 +8091,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -8232,7 +8241,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -8344,7 +8353,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -8503,7 +8512,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -8650,7 +8659,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -8804,7 +8813,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -9047,7 +9056,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -9507,7 +9516,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -9878,7 +9887,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -9985,7 +9994,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -10189,7 +10198,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -10357,12 +10366,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -10535,7 +10544,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -10708,7 +10717,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -10819,12 +10828,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -10989,12 +10998,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -11141,12 +11150,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -11318,12 +11327,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -11494,12 +11503,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -11687,12 +11696,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -12084,7 +12093,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -12505,7 +12514,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -12674,7 +12683,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -12795,7 +12804,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -12962,7 +12971,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -13123,7 +13132,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -13265,7 +13274,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -13486,7 +13495,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -13698,7 +13707,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -13902,7 +13911,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -14038,7 +14047,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -14209,12 +14218,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -14423,7 +14432,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -14612,7 +14621,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -14793,7 +14802,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -14911,7 +14920,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -15042,7 +15051,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -15166,12 +15175,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -15311,7 +15320,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -15467,7 +15476,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -15655,7 +15664,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -15842,12 +15851,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -16150,12 +16159,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -16327,7 +16336,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -16610,7 +16619,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -18968,7 +18977,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -19279,12 +19288,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -19430,7 +19439,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -19556,7 +19565,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -20257,12 +20266,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -20418,7 +20427,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -21281,12 +21290,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -22109,12 +22118,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -23864,7 +23873,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -25237,7 +25246,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -26543,7 +26552,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -26933,7 +26942,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -28817,12 +28826,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -29073,12 +29082,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -29183,12 +29192,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -31351,7 +31360,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -31528,7 +31537,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -31680,7 +31689,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -32455,7 +32464,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -33373,7 +33382,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -34179,7 +34188,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -34722,7 +34731,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -34858,7 +34867,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -35264,7 +35273,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -36408,12 +36417,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -37165,7 +37174,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -38674,12 +38683,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -39766,12 +39775,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -40652,12 +40661,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -41193,12 +41202,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -41392,12 +41401,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -41606,12 +41615,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -41817,12 +41826,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; 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 7ebca0da..e44bd1f9 100644 --- a/src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/Std.cs +++ b/src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/Std.cs @@ -16,6 +16,7 @@ using __IntPtr = global::System.IntPtr; [assembly:InternalsVisibleTo("CppSharp.CppParser")] #pragma warning disable CS0109 // Member does not hide an inherited member; new keyword is not required +#pragma warning disable CS9084 // Struct member returns 'this' or other instance members by reference namespace Std { @@ -160,17 +161,26 @@ namespace Std public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; NativeToManagedMap.TryRemove(__Instance, out _); DisposePartial(disposing); + if (callNativeDtor) + { + var ___Ty = typeof(_Ty); + if (___Ty.IsAssignableFrom(typeof(sbyte))) + { + return; + } + throw new ArgumentOutOfRangeException("_Ty", string.Join(", ", new[] { typeof(_Ty).FullName }), "global::Std.Allocator<_Ty> maps a C++ template class and therefore it only supports a limited set of types and their subclasses: ."); + } if (__ownsNativeInstance) Marshal.FreeHGlobal(__Instance); __Instance = IntPtr.Zero; @@ -299,12 +309,12 @@ namespace Std public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -431,12 +441,12 @@ namespace Std public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; 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 0aee6b45..66e101cb 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 @@ -14,6 +14,7 @@ using System.Runtime.CompilerServices; [assembly:InternalsVisibleTo("CppSharp.Parser")] #pragma warning disable CS0109 // Member does not hide an inherited member; new keyword is not required +#pragma warning disable CS9084 // Struct member returns 'this' or other instance members by reference namespace CppSharp { @@ -187,12 +188,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -378,12 +379,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -602,7 +603,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -850,7 +851,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -1043,12 +1044,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -1151,7 +1152,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -1323,7 +1324,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -1462,7 +1463,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -1589,7 +1590,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -1716,7 +1717,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -1847,7 +1848,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -2018,12 +2019,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -2117,7 +2118,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -2416,12 +2417,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -2529,7 +2530,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -2673,7 +2674,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -2786,7 +2787,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -2918,12 +2919,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -3017,7 +3018,7 @@ namespace CppSharp } private SourceLocation.__Internal __instance; - internal SourceLocation.__Internal __Instance => __instance; + internal ref SourceLocation.__Internal __Instance => ref __instance; internal static SourceLocation __CreateInstance(__IntPtr native, bool skipVTables = false) { @@ -3040,6 +3041,14 @@ namespace CppSharp __instance = *(global::CppSharp.Parser.SourceLocation.__Internal*) native; } + public SourceLocation() + { + fixed (__Internal* __instancePtr = &__instance) + { + __Internal.ctor(new __IntPtr(__instancePtr)); + } + } + public SourceLocation(uint ID) : this() { @@ -3175,12 +3184,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -3402,12 +3411,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -3543,12 +3552,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -3695,12 +3704,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -4082,7 +4091,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -4826,12 +4835,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -4997,7 +5006,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -5167,7 +5176,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -5313,7 +5322,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -5688,7 +5697,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -6574,12 +6583,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -7147,7 +7156,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -7554,7 +7563,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -7693,7 +7702,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -7813,7 +7822,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -7946,7 +7955,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -8082,12 +8091,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -8232,7 +8241,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -8344,7 +8353,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -8503,7 +8512,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -8650,7 +8659,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -8804,7 +8813,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -9047,7 +9056,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -9507,7 +9516,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -9878,7 +9887,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -9985,7 +9994,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -10189,7 +10198,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -10357,12 +10366,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -10535,7 +10544,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -10708,7 +10717,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -10819,12 +10828,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -10989,12 +10998,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -11140,12 +11149,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -11317,12 +11326,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -11493,12 +11502,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -11686,12 +11695,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -12083,7 +12092,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -12504,7 +12513,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -12673,7 +12682,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -12794,7 +12803,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -12961,7 +12970,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -13122,7 +13131,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -13264,7 +13273,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -13485,7 +13494,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -13697,7 +13706,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -13901,7 +13910,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -14037,7 +14046,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -14208,12 +14217,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -14422,7 +14431,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -14611,7 +14620,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -14792,7 +14801,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -14910,7 +14919,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -15040,7 +15049,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -15164,12 +15173,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -15309,7 +15318,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -15465,7 +15474,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -15652,7 +15661,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -15839,12 +15848,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -16147,12 +16156,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -16324,7 +16333,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -16607,7 +16616,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -18965,7 +18974,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -19276,12 +19285,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -19427,7 +19436,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -19553,7 +19562,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -20254,12 +20263,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -20415,7 +20424,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -21278,12 +21287,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -22106,12 +22115,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -23859,7 +23868,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -25232,7 +25241,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -26538,7 +26547,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -26928,7 +26937,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -28811,12 +28820,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -29067,12 +29076,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -29177,12 +29186,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -31345,7 +31354,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -31522,7 +31531,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -31674,7 +31683,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -32449,7 +32458,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -33365,7 +33374,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -34171,7 +34180,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -34713,7 +34722,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -34849,7 +34858,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -35255,7 +35264,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -36397,12 +36406,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -37154,7 +37163,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -38662,12 +38671,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -39754,12 +39763,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -40640,12 +40649,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -41181,12 +41190,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -41380,12 +41389,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -41594,12 +41603,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -41805,12 +41814,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; 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 08646229..3f791097 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 @@ -16,6 +16,7 @@ using __IntPtr = global::System.IntPtr; [assembly:InternalsVisibleTo("CppSharp.CppParser")] #pragma warning disable CS0109 // Member does not hide an inherited member; new keyword is not required +#pragma warning disable CS9084 // Struct member returns 'this' or other instance members by reference namespace Std { @@ -147,12 +148,12 @@ namespace Std public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -280,12 +281,12 @@ namespace Std public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -485,12 +486,12 @@ namespace Std public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) 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 5c0c7a9d..95c942de 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 @@ -14,6 +14,7 @@ using System.Runtime.CompilerServices; [assembly:InternalsVisibleTo("CppSharp.Parser")] #pragma warning disable CS0109 // Member does not hide an inherited member; new keyword is not required +#pragma warning disable CS9084 // Struct member returns 'this' or other instance members by reference namespace CppSharp { @@ -187,12 +188,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -378,12 +379,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -602,7 +603,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -850,7 +851,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -1043,12 +1044,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -1151,7 +1152,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -1323,7 +1324,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -1462,7 +1463,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -1589,7 +1590,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -1716,7 +1717,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -1847,7 +1848,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -2018,12 +2019,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -2117,7 +2118,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -2416,12 +2417,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -2529,7 +2530,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -2673,7 +2674,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -2786,7 +2787,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -2918,12 +2919,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -3017,7 +3018,7 @@ namespace CppSharp } private SourceLocation.__Internal __instance; - internal SourceLocation.__Internal __Instance => __instance; + internal ref SourceLocation.__Internal __Instance => ref __instance; internal static SourceLocation __CreateInstance(__IntPtr native, bool skipVTables = false) { @@ -3040,6 +3041,14 @@ namespace CppSharp __instance = *(global::CppSharp.Parser.SourceLocation.__Internal*) native; } + public SourceLocation() + { + fixed (__Internal* __instancePtr = &__instance) + { + __Internal.ctor(new __IntPtr(__instancePtr)); + } + } + public SourceLocation(uint ID) : this() { @@ -3175,12 +3184,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -3402,12 +3411,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -3543,12 +3552,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -3695,12 +3704,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -4082,7 +4091,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -4826,12 +4835,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -4997,7 +5006,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -5167,7 +5176,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -5313,7 +5322,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -5688,7 +5697,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -6574,12 +6583,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -7147,7 +7156,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -7554,7 +7563,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -7693,7 +7702,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -7813,7 +7822,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -7946,7 +7955,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -8082,12 +8091,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -8232,7 +8241,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -8344,7 +8353,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -8503,7 +8512,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -8650,7 +8659,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -8804,7 +8813,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -9047,7 +9056,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -9507,7 +9516,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -9878,7 +9887,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -9985,7 +9994,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -10189,7 +10198,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -10357,12 +10366,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -10535,7 +10544,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -10708,7 +10717,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -10819,12 +10828,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -10989,12 +10998,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -11140,12 +11149,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -11317,12 +11326,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -11493,12 +11502,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -11686,12 +11695,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -12083,7 +12092,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -12504,7 +12513,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -12673,7 +12682,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -12794,7 +12803,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -12961,7 +12970,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -13122,7 +13131,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -13264,7 +13273,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -13485,7 +13494,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -13697,7 +13706,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -13901,7 +13910,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -14037,7 +14046,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -14208,12 +14217,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -14422,7 +14431,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -14611,7 +14620,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -14792,7 +14801,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -14910,7 +14919,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -15040,7 +15049,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -15164,12 +15173,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -15309,7 +15318,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -15465,7 +15474,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -15652,7 +15661,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -15839,12 +15848,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -16147,12 +16156,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -16324,7 +16333,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -16607,7 +16616,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -18965,7 +18974,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -19276,12 +19285,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -19427,7 +19436,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -19553,7 +19562,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -20254,12 +20263,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -20415,7 +20424,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -21278,12 +21287,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -22106,12 +22115,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -23859,7 +23868,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -25232,7 +25241,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -26538,7 +26547,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -26928,7 +26937,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -28811,12 +28820,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -29067,12 +29076,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -29177,12 +29186,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -31345,7 +31354,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -31522,7 +31531,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -31674,7 +31683,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -32449,7 +32458,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -33365,7 +33374,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -34171,7 +34180,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -34713,7 +34722,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -34849,7 +34858,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -35255,7 +35264,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -36397,12 +36406,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -37154,7 +37163,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -38662,12 +38671,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -39754,12 +39763,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -40640,12 +40649,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -41181,12 +41190,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -41380,12 +41389,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -41594,12 +41603,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -41805,12 +41814,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; 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 cdf0bbf7..640bb868 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 @@ -16,6 +16,7 @@ using __IntPtr = global::System.IntPtr; [assembly:InternalsVisibleTo("CppSharp.CppParser")] #pragma warning disable CS0109 // Member does not hide an inherited member; new keyword is not required +#pragma warning disable CS9084 // Struct member returns 'this' or other instance members by reference namespace Std { @@ -113,12 +114,12 @@ namespace Std public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -305,12 +306,12 @@ namespace Std public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -457,12 +458,12 @@ namespace Std public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; 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 58d27ea0..3799d088 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 @@ -14,6 +14,7 @@ using System.Runtime.CompilerServices; [assembly:InternalsVisibleTo("CppSharp.Parser")] #pragma warning disable CS0109 // Member does not hide an inherited member; new keyword is not required +#pragma warning disable CS9084 // Struct member returns 'this' or other instance members by reference namespace CppSharp { @@ -187,12 +188,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -378,12 +379,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -602,7 +603,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -850,7 +851,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -1043,12 +1044,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -1151,7 +1152,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -1323,7 +1324,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -1462,7 +1463,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -1589,7 +1590,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -1716,7 +1717,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -1847,7 +1848,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -2018,12 +2019,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -2117,7 +2118,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -2416,12 +2417,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -2529,7 +2530,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -2673,7 +2674,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -2786,7 +2787,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -2918,12 +2919,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -3017,7 +3018,7 @@ namespace CppSharp } private SourceLocation.__Internal __instance; - internal SourceLocation.__Internal __Instance => __instance; + internal ref SourceLocation.__Internal __Instance => ref __instance; internal static SourceLocation __CreateInstance(__IntPtr native, bool skipVTables = false) { @@ -3040,6 +3041,14 @@ namespace CppSharp __instance = *(global::CppSharp.Parser.SourceLocation.__Internal*) native; } + public SourceLocation() + { + fixed (__Internal* __instancePtr = &__instance) + { + __Internal.ctor(new __IntPtr(__instancePtr)); + } + } + public SourceLocation(uint ID) : this() { @@ -3175,12 +3184,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -3402,12 +3411,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -3543,12 +3552,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -3695,12 +3704,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -4082,7 +4091,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -4826,12 +4835,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -4997,7 +5006,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -5167,7 +5176,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -5313,7 +5322,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -5688,7 +5697,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -6574,12 +6583,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -7147,7 +7156,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -7554,7 +7563,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -7693,7 +7702,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -7813,7 +7822,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -7946,7 +7955,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -8082,12 +8091,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -8232,7 +8241,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -8344,7 +8353,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -8503,7 +8512,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -8650,7 +8659,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -8804,7 +8813,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -9047,7 +9056,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -9507,7 +9516,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -9878,7 +9887,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -9985,7 +9994,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -10189,7 +10198,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -10357,12 +10366,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -10535,7 +10544,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -10708,7 +10717,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -10819,12 +10828,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -10989,12 +10998,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -11140,12 +11149,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -11317,12 +11326,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -11493,12 +11502,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -11686,12 +11695,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -12083,7 +12092,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -12504,7 +12513,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -12673,7 +12682,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -12794,7 +12803,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -12961,7 +12970,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -13122,7 +13131,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -13264,7 +13273,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -13485,7 +13494,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -13697,7 +13706,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -13901,7 +13910,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -14037,7 +14046,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -14208,12 +14217,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -14422,7 +14431,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -14611,7 +14620,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -14792,7 +14801,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -14910,7 +14919,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -15040,7 +15049,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -15164,12 +15173,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -15309,7 +15318,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -15465,7 +15474,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -15652,7 +15661,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -15839,12 +15848,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -16147,12 +16156,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -16324,7 +16333,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -16607,7 +16616,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -18965,7 +18974,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -19276,12 +19285,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -19427,7 +19436,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -19553,7 +19562,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -20254,12 +20263,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -20415,7 +20424,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -21278,12 +21287,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -22106,12 +22115,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -23859,7 +23868,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -25232,7 +25241,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -26538,7 +26547,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -26928,7 +26937,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -28811,12 +28820,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -29067,12 +29076,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -29177,12 +29186,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -31345,7 +31354,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -31522,7 +31531,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -31674,7 +31683,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -32449,7 +32458,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -33365,7 +33374,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -34171,7 +34180,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -34713,7 +34722,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -34849,7 +34858,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -35255,7 +35264,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -36397,12 +36406,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -37154,7 +37163,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -38662,12 +38671,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -39754,12 +39763,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -40640,12 +40649,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -41181,12 +41190,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -41380,12 +41389,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -41594,12 +41603,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -41805,12 +41814,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; 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 91785e9f..55496aa4 100644 --- a/src/CppParser/Bindings/CSharp/x86_64-linux-gnu/Std.cs +++ b/src/CppParser/Bindings/CSharp/x86_64-linux-gnu/Std.cs @@ -16,6 +16,7 @@ using __IntPtr = global::System.IntPtr; [assembly:InternalsVisibleTo("CppSharp.CppParser")] #pragma warning disable CS0109 // Member does not hide an inherited member; new keyword is not required +#pragma warning disable CS9084 // Struct member returns 'this' or other instance members by reference namespace Std { @@ -113,12 +114,12 @@ namespace Std public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -305,12 +306,12 @@ namespace Std public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -433,12 +434,12 @@ namespace Std public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; 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 e8e7233f..7664bbf6 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 @@ -14,6 +14,7 @@ using System.Runtime.CompilerServices; [assembly:InternalsVisibleTo("CppSharp.Parser")] #pragma warning disable CS0109 // Member does not hide an inherited member; new keyword is not required +#pragma warning disable CS9084 // Struct member returns 'this' or other instance members by reference namespace CppSharp { @@ -187,12 +188,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -378,12 +379,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -602,7 +603,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -850,7 +851,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -1043,12 +1044,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -1151,7 +1152,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -1323,7 +1324,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -1462,7 +1463,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -1589,7 +1590,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -1716,7 +1717,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -1847,7 +1848,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -2018,12 +2019,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -2117,7 +2118,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -2416,12 +2417,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -2529,7 +2530,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -2673,7 +2674,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -2786,7 +2787,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -2918,12 +2919,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -3017,7 +3018,7 @@ namespace CppSharp } private SourceLocation.__Internal __instance; - internal SourceLocation.__Internal __Instance => __instance; + internal ref SourceLocation.__Internal __Instance => ref __instance; internal static SourceLocation __CreateInstance(__IntPtr native, bool skipVTables = false) { @@ -3040,6 +3041,14 @@ namespace CppSharp __instance = *(global::CppSharp.Parser.SourceLocation.__Internal*) native; } + public SourceLocation() + { + fixed (__Internal* __instancePtr = &__instance) + { + __Internal.ctor(new __IntPtr(__instancePtr)); + } + } + public SourceLocation(uint ID) : this() { @@ -3175,12 +3184,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -3402,12 +3411,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -3543,12 +3552,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -3695,12 +3704,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -4082,7 +4091,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -4826,12 +4835,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -4997,7 +5006,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -5167,7 +5176,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -5313,7 +5322,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -5688,7 +5697,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -6574,12 +6583,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -7147,7 +7156,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -7554,7 +7563,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -7693,7 +7702,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -7813,7 +7822,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -7946,7 +7955,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -8082,12 +8091,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -8232,7 +8241,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -8344,7 +8353,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -8503,7 +8512,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -8650,7 +8659,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -8804,7 +8813,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -9047,7 +9056,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -9507,7 +9516,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -9879,7 +9888,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -9986,7 +9995,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -10190,7 +10199,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -10358,12 +10367,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -10536,7 +10545,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -10709,7 +10718,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -10820,12 +10829,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -10990,12 +10999,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -11142,12 +11151,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -11319,12 +11328,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -11495,12 +11504,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -11688,12 +11697,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -12085,7 +12094,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -12506,7 +12515,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -12675,7 +12684,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -12796,7 +12805,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -12963,7 +12972,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -13124,7 +13133,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -13266,7 +13275,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -13487,7 +13496,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -13699,7 +13708,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -13903,7 +13912,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -14039,7 +14048,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -14210,12 +14219,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -14424,7 +14433,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -14613,7 +14622,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -14794,7 +14803,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -14912,7 +14921,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -15043,7 +15052,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -15167,12 +15176,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -15312,7 +15321,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -15468,7 +15477,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -15656,7 +15665,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -15843,12 +15852,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -16151,12 +16160,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -16328,7 +16337,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -16611,7 +16620,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -18969,7 +18978,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -19280,12 +19289,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -19431,7 +19440,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -19557,7 +19566,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -20258,12 +20267,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -20419,7 +20428,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -21282,12 +21291,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -22110,12 +22119,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -23869,7 +23878,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -25246,7 +25255,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -26557,7 +26566,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -26948,7 +26957,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -28836,12 +28845,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -29092,12 +29101,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -29202,12 +29211,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -31373,7 +31382,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -31550,7 +31559,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -31702,7 +31711,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -32482,7 +32491,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -33402,7 +33411,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -34209,7 +34218,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -34753,7 +34762,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -34889,7 +34898,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -35296,7 +35305,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -36441,12 +36450,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -37201,7 +37210,7 @@ namespace CppSharp partial void DisposePartial(bool disposing); - internal protected override void Dispose(bool disposing, bool callNativeDtor ) + internal protected override void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -38716,12 +38725,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -39811,12 +39820,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -40697,12 +40706,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -41238,12 +41247,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -41437,12 +41446,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -41651,12 +41660,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -41862,12 +41871,12 @@ namespace CppSharp public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; 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 8a426d69..a34a2d26 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 @@ -16,6 +16,7 @@ using __IntPtr = global::System.IntPtr; [assembly:InternalsVisibleTo("CppSharp.CppParser")] #pragma warning disable CS0109 // Member does not hide an inherited member; new keyword is not required +#pragma warning disable CS9084 // Struct member returns 'this' or other instance members by reference namespace Std { @@ -160,17 +161,26 @@ namespace Std public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; NativeToManagedMap.TryRemove(__Instance, out _); DisposePartial(disposing); + if (callNativeDtor) + { + var ___Ty = typeof(_Ty); + if (___Ty.IsAssignableFrom(typeof(sbyte))) + { + return; + } + throw new ArgumentOutOfRangeException("_Ty", string.Join(", ", new[] { typeof(_Ty).FullName }), "global::Std.Allocator<_Ty> maps a C++ template class and therefore it only supports a limited set of types and their subclasses: ."); + } if (__ownsNativeInstance) Marshal.FreeHGlobal(__Instance); __Instance = IntPtr.Zero; @@ -299,12 +309,12 @@ namespace Std public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return; @@ -431,12 +441,12 @@ namespace Std public void Dispose() { - Dispose(disposing: true, callNativeDtor : __ownsNativeInstance ); + Dispose(disposing: true, callNativeDtor: __ownsNativeInstance); } partial void DisposePartial(bool disposing); - internal protected virtual void Dispose(bool disposing, bool callNativeDtor ) + internal protected virtual void Dispose(bool disposing, bool callNativeDtor) { if (__Instance == IntPtr.Zero) return;