C# 클래스 Python.Runtime.PyDict

Represents a Python dictionary object. See the documentation at http://www.python.org/doc/current/api/dictObjects.html for details.
상속: PyObject
파일 보기 프로젝트 열기: fkarb/pythonnet 1 사용 예제들

공개 메소드들

메소드 설명
Clear ( ) : void

Clear Method

Clears the dictionary.

Copy ( ) : PyDict

Copy Method

Returns a copy of the dictionary.

HasKey ( PyObject key ) : bool

HasKey Method

Returns true if the object key appears in the dictionary.

HasKey ( string key ) : bool

HasKey Method

Returns true if the string key appears in the dictionary.

IsDictType ( PyObject value ) : bool

IsDictType Method

Returns true if the given object is a Python dictionary.

Items ( ) : PyObject

Items Method

Returns a sequence containing the items of the dictionary.

Keys ( ) : PyObject

Keys Method

Returns a sequence containing the keys of the dictionary.

PyDict ( ) : System

PyDict Constructor

Creates a new Python dictionary object.

PyDict ( IntPtr ptr ) : System

PyDict Constructor

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

PyDict ( PyObject o ) : System

PyDict Constructor

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

Update ( PyObject other ) : void

Update Method

Update the dictionary from another dictionary.

Values ( ) : PyObject

Values Method

Returns a sequence containing the values of the dictionary.

메소드 상세

Clear() 공개 메소드

Clear Method
Clears the dictionary.
public Clear ( ) : void
리턴 void

Copy() 공개 메소드

Copy Method
Returns a copy of the dictionary.
public Copy ( ) : PyDict
리턴 PyDict

HasKey() 공개 메소드

HasKey Method
Returns true if the object key appears in the dictionary.
public HasKey ( PyObject key ) : bool
key PyObject
리턴 bool

HasKey() 공개 메소드

HasKey Method
Returns true if the string key appears in the dictionary.
public HasKey ( string key ) : bool
key string
리턴 bool

IsDictType() 공개 정적인 메소드

IsDictType Method
Returns true if the given object is a Python dictionary.
public static IsDictType ( PyObject value ) : bool
value PyObject
리턴 bool

Items() 공개 메소드

Items Method
Returns a sequence containing the items of the dictionary.
public Items ( ) : PyObject
리턴 PyObject

Keys() 공개 메소드

Keys Method
Returns a sequence containing the keys of the dictionary.
public Keys ( ) : PyObject
리턴 PyObject

PyDict() 공개 메소드

PyDict Constructor
Creates a new Python dictionary object.
public PyDict ( ) : System
리턴 System

PyDict() 공개 메소드

PyDict Constructor
Creates a new PyDict 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 PyDict ( IntPtr ptr ) : System
ptr System.IntPtr
리턴 System

PyDict() 공개 메소드

PyDict Constructor
Copy constructor - obtain a PyDict from a generic PyObject. An ArgumentException will be thrown if the given object is not a Python dictionary object.
public PyDict ( PyObject o ) : System
o PyObject
리턴 System

Update() 공개 메소드

Update Method
Update the dictionary from another dictionary.
public Update ( PyObject other ) : void
other PyObject
리턴 void

Values() 공개 메소드

Values Method
Returns a sequence containing the values of the dictionary.
public Values ( ) : PyObject
리턴 PyObject