MyCaffe  1.12.2.41
Deep learning software for Windows C# programmers.
Python.Runtime.StringType Class Reference

The StringType represents a clr string type. More...

Inheritance diagram for Python.Runtime.StringType:
Python.Runtime.PyClrTypeBase

Public Member Functions

 StringType ()
 The constructor. More...
 
override object ToClr (PyObject pyObj)
 Converts a PyObject to a string. More...
 
override PyObject ToPython (object clrObj)
 Converts a string to a PyObject. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Python.Runtime.PyClrTypeBase
 PyClrTypeBase (string pyType, Type clrType)
 The constructor. More...
 
 PyClrTypeBase (PyObject pyType, Type clrType)
 The constructor. More...
 
- Properties inherited from Python.Runtime.PyClrTypeBase
PyObject PythonType [get]
 Returns the Python type. More...
 
Type ClrType [get]
 Returns the clr type. More...
 

Detailed Description

The StringType represents a clr string type.

Open-source public code originally shared from:

See also
PyConverter by Wenguang Yang, 2018

Definition at line 310 of file PyConverter.cs.

Constructor & Destructor Documentation

◆ StringType()

Python.Runtime.StringType.StringType ( )

The constructor.

Definition at line 315 of file PyConverter.cs.

Member Function Documentation

◆ ToClr()

override object Python.Runtime.StringType.ToClr ( PyObject  pyObj)
virtual

Converts a PyObject to a string.

Parameters
pyObjSpecifies the Python object to convert.
Returns
A clr string is returned.

Implements Python.Runtime.PyClrTypeBase.

Definition at line 325 of file PyConverter.cs.

◆ ToPython()

override PyObject Python.Runtime.StringType.ToPython ( object  clrObj)
virtual

Converts a string to a PyObject.

Parameters
clrObjSpecifies the string to convert.
Returns
A PyObject representing the string is returned.

Implements Python.Runtime.PyClrTypeBase.

Definition at line 335 of file PyConverter.cs.


The documentation for this class was generated from the following file: