C# Класс Python.Runtime.PyString

Represents a Python (ansi) string object. See the documentation at http://www.python.org/doc/current/api/stringObjects.html for details.
Наследование: PySequence
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
IsStringType ( PyObject value ) : bool

IsStringType Method

Returns true if the given object is a Python string.

PyString ( IntPtr ptr ) : System

PyString Constructor

Creates a new PyString from an existing object reference. Note that the instance assumes ownership of the object reference. The object reference is not checked for type-correctness.

PyString ( PyObject o ) : System

PyString Constructor

Copy constructor - obtain a PyString from a generic PyObject. An ArgumentException will be thrown if the given object is not a Python string object.

PyString ( string s ) : System

PyString Constructor

Creates a Python string from a managed string.

Описание методов

IsStringType() публичный статический Метод

IsStringType Method
Returns true if the given object is a Python string.
public static IsStringType ( PyObject value ) : bool
value PyObject
Результат bool

PyString() публичный Метод

PyString Constructor
Creates a new PyString from an existing object reference. Note that the instance assumes ownership of the object reference. The object reference is not checked for type-correctness.
public PyString ( IntPtr ptr ) : System
ptr System.IntPtr
Результат System

PyString() публичный Метод

PyString Constructor
Copy constructor - obtain a PyString from a generic PyObject. An ArgumentException will be thrown if the given object is not a Python string object.
public PyString ( PyObject o ) : System
o PyObject
Результат System

PyString() публичный Метод

PyString Constructor
Creates a Python string from a managed string.
public PyString ( string s ) : System
s string
Результат System