C# 클래스 IronPython.Runtime.DictionaryOps

Provides both helpers for implementing Python dictionaries as well as providing public methods that should be exposed on all dictionary types. Currently these are published on IDictionary<object, object>
파일 보기 프로젝트 열기: jschementi/iron 1 사용 예제들

공개 메소드들

메소드 설명
__repr__ ( CodeContext context, object>.IDictionary self ) : string
get ( PythonDictionary self, object key ) : object
get ( PythonDictionary self, object key, object defaultValue ) : object
has_key ( object>.IDictionary self, object key ) : bool
items ( object>.IDictionary self ) : List
iteritems ( object>.IDictionary self ) : IEnumerator
iterkeys ( object>.IDictionary self ) : IEnumerator
keys ( object>.IDictionary self ) : List
pop ( PythonDictionary self, object key ) : object
pop ( PythonDictionary self, object key, object defaultValue ) : object
popitem ( object>.IDictionary self ) : PythonTuple
setdefault ( PythonDictionary self, object key ) : object
setdefault ( PythonDictionary self, object key, object defaultValue ) : object
update ( CodeContext context, PythonDictionary self, object b ) : void

비공개 메소드들

메소드 설명
AddKeyValue ( PythonDictionary self, object o ) : bool
CompareTo ( CodeContext context, object>.IDictionary left, object>.IDictionary right ) : int
CompareToWorker ( CodeContext context, object>.IDictionary left, List ritems ) : int
SlowUpdate ( CodeContext context, PythonDictionary self, object b ) : void
TryGetValueVirtual ( CodeContext context, PythonDictionary self, object key, object &DefaultGetItem, object &value ) : bool

메소드 상세

__repr__() 공개 정적인 메소드

public static __repr__ ( CodeContext context, object>.IDictionary self ) : string
context CodeContext
self object>.IDictionary
리턴 string

get() 공개 정적인 메소드

public static get ( PythonDictionary self, object key ) : object
self PythonDictionary
key object
리턴 object

get() 공개 정적인 메소드

public static get ( PythonDictionary self, object key, object defaultValue ) : object
self PythonDictionary
key object
defaultValue object
리턴 object

has_key() 공개 정적인 메소드

public static has_key ( object>.IDictionary self, object key ) : bool
self object>.IDictionary
key object
리턴 bool

items() 공개 정적인 메소드

public static items ( object>.IDictionary self ) : List
self object>.IDictionary
리턴 List

iteritems() 공개 정적인 메소드

public static iteritems ( object>.IDictionary self ) : IEnumerator
self object>.IDictionary
리턴 IEnumerator

iterkeys() 공개 정적인 메소드

public static iterkeys ( object>.IDictionary self ) : IEnumerator
self object>.IDictionary
리턴 IEnumerator

keys() 공개 정적인 메소드

public static keys ( object>.IDictionary self ) : List
self object>.IDictionary
리턴 List

pop() 공개 정적인 메소드

public static pop ( PythonDictionary self, object key ) : object
self PythonDictionary
key object
리턴 object

pop() 공개 정적인 메소드

public static pop ( PythonDictionary self, object key, object defaultValue ) : object
self PythonDictionary
key object
defaultValue object
리턴 object

popitem() 공개 정적인 메소드

public static popitem ( object>.IDictionary self ) : PythonTuple
self object>.IDictionary
리턴 PythonTuple

setdefault() 공개 정적인 메소드

public static setdefault ( PythonDictionary self, object key ) : object
self PythonDictionary
key object
리턴 object

setdefault() 공개 정적인 메소드

public static setdefault ( PythonDictionary self, object key, object defaultValue ) : object
self PythonDictionary
key object
defaultValue object
리턴 object

update() 공개 정적인 메소드

public static update ( CodeContext context, PythonDictionary self, object b ) : void
context CodeContext
self PythonDictionary
b object
리턴 void