We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a67a6bb commit 60006faCopy full SHA for 60006fa
1 file changed
PythonNETExtensions/Core/LongRunningCSharpRegion.cs
@@ -1,15 +1,17 @@
1
using System.Runtime.CompilerServices;
2
+using PythonNETExtensions.Core.Handles;
3
4
namespace PythonNETExtensions.Core
5
{
6
public readonly ref struct LongRunningCSharpRegion
7
8
private readonly ref PythonHandle Handle;
-
9
+
10
[MethodImpl(MethodImplOptions.AggressiveInlining)]
- public LongRunningCSharpRegion()
11
+ internal LongRunningCSharpRegion(ref PythonHandle handle)
12
- Handle.Dispose();
13
+ Handle = ref handle;
14
+ handle.Dispose();
15
}
16
17
0 commit comments