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
파일 보기 프로젝트 열기: fkarb/pythonnet 1 사용 예제들

공개 메소드들

메소드 설명
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