FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
pythonnet/src/runtime/ReferenceExtensions.cs at update/NetCore21 · losttech/pythonnet · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
losttech
/
pythonnet
Public
forked from
pythonnet/pythonnet
Notifications
You must be signed in to change notification settings
Fork
1
Star
2
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
pythonnet
/
src
/
runtime
/
ReferenceExtensions.cs
Copy path
More file actions
More file actions
Latest commit
History
History
History
20 lines (19 loc) · 651 Bytes
Breadcrumbs
pythonnet
/
src
/
runtime
/
ReferenceExtensions.cs
Copy path
File metadata and controls
20 lines (19 loc) · 651 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
namespace
Python
.
Runtime
{
using
System
.
Diagnostics
.
Contracts
;
static
class
ReferenceExtensions
{
/// <summary>
/// Checks if the reference points to Python object <c>None</c>.
/// </summary>
[
Pure
]
public
static
bool
IsNone
(
this
in
NewReference
reference
)
=>
reference
.
DangerousGetAddress
(
)
==
Runtime
.
PyNone
;
/// <summary>
/// Checks if the reference points to Python object <c>None</c>.
/// </summary>
[
Pure
]
public
static
bool
IsNone
(
this
BorrowedReference
reference
)
=>
reference
.
DangerousGetAddress
(
)
==
Runtime
.
PyNone
;
}
}
Back
|
FazBrowse Home
|
New Git URL