FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
pythonnet/src/runtime/Codecs/IPyObjectDecoder.cs at v3.2.0-rc2 · pythonnet/pythonnet · GitHub
pythonnet
pythonnet
Repository navigation
Code
Issues
147
(147)
Pull requests
11
(11)
Discussions
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
pythonnet
/
src
/
runtime
/
Codecs
/
IPyObjectDecoder.cs
Copy path
More file actions
More file actions
Latest commit
History
History
History
22 lines (20 loc) · 792 Bytes
Breadcrumbs
pythonnet
/
src
/
runtime
/
Codecs
/
IPyObjectDecoder.cs
Copy path
File metadata and controls
22 lines (20 loc) · 792 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
namespace
Python
.
Runtime
;
using
System
;
/// <summary>
/// Defines <see cref="PyObject"/> conversion to CLR types (unmarshalling)
/// </summary>
public
interface
IPyObjectDecoder
{
/// <summary>
/// Checks if this decoder can decode from <paramref name="objectType"/> to <paramref name="targetType"/>
/// </summary>
bool
CanDecode
(
PyType
objectType
,
Type
targetType
)
;
/// <summary>
/// Attempts do decode <paramref name="pyObj"/> into a variable of specified type
/// </summary>
/// <typeparam name="T">CLR type to decode into</typeparam>
/// <param name="pyObj">Object to decode</param>
/// <param name="value">The variable, that will receive decoding result</param>
/// <returns></returns>
bool
TryDecode
<
T
>
(
PyObject
pyObj
,
out
T
?
value
)
;
}
Back
|
FazBrowse Home
|
New Git URL