FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
pythonnet/src/runtime/ReferenceExtensions.cs at master · RXDSolutions/pythonnet · GitHub
This repository was archived by the owner on Oct 14, 2026. It is now read-only.
RXDSolutions
pythonnet
Repository navigation
Code
Pull requests
Actions
Projects
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