FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
pythonnet/src/runtime/Types/UnsafeReferenceWithRun.cs at master · generalloki/pythonnet · GitHub
generalloki
pythonnet
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
pythonnet
/
src
/
runtime
/
Types
/
UnsafeReferenceWithRun.cs
Copy path
More file actions
More file actions
Latest commit
History
History
History
27 lines (22 loc) · 619 Bytes
Breadcrumbs
pythonnet
/
src
/
runtime
/
Types
/
UnsafeReferenceWithRun.cs
Copy path
File metadata and controls
27 lines (22 loc) · 619 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using
System
;
using
System
.
ComponentModel
;
namespace
Python
.
Runtime
;
[
EditorBrowsable
(
EditorBrowsableState
.
Never
)
]
[
Obsolete
(
Util
.
InternalUseOnly
)
]
public
struct
UnsafeReferenceWithRun
{
internal
UnsafeReferenceWithRun
(
BorrowedReference
pyObj
)
{
RawObj
=
pyObj
.
DangerousGetAddressOrNull
(
)
;
Run
=
Runtime
.
GetRun
(
)
;
}
internal
IntPtr
RawObj
;
internal
BorrowedReference
Ref
=>
new
(
RawObj
)
;
internal
int
Run
;
internal
BorrowedReference
CheckRun
(
)
{
if
(
Run
!=
Runtime
.
GetRun
(
)
)
throw
new
RuntimeShutdownException
(
RawObj
)
;
return
Ref
;
}
}
Back
|
FazBrowse Home
|
New Git URL