C# Class 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>
Afficher le fichier Open project: jschementi/iron Class Usage Examples

Méthodes publiques

Méthode Description
__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

Private Methods

Méthode Description
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

Method Details

__repr__() public static méthode

public static __repr__ ( CodeContext context, object>.IDictionary self ) : string
context CodeContext
self object>.IDictionary
Résultat string

get() public static méthode

public static get ( PythonDictionary self, object key ) : object
self PythonDictionary
key object
Résultat object

get() public static méthode

public static get ( PythonDictionary self, object key, object defaultValue ) : object
self PythonDictionary
key object
defaultValue object
Résultat object

has_key() public static méthode

public static has_key ( object>.IDictionary self, object key ) : bool
self object>.IDictionary
key object
Résultat bool

items() public static méthode

public static items ( object>.IDictionary self ) : List
self object>.IDictionary
Résultat List

iteritems() public static méthode

public static iteritems ( object>.IDictionary self ) : IEnumerator
self object>.IDictionary
Résultat IEnumerator

iterkeys() public static méthode

public static iterkeys ( object>.IDictionary self ) : IEnumerator
self object>.IDictionary
Résultat IEnumerator

keys() public static méthode

public static keys ( object>.IDictionary self ) : List
self object>.IDictionary
Résultat List

pop() public static méthode

public static pop ( PythonDictionary self, object key ) : object
self PythonDictionary
key object
Résultat object

pop() public static méthode

public static pop ( PythonDictionary self, object key, object defaultValue ) : object
self PythonDictionary
key object
defaultValue object
Résultat object

popitem() public static méthode

public static popitem ( object>.IDictionary self ) : PythonTuple
self object>.IDictionary
Résultat PythonTuple

setdefault() public static méthode

public static setdefault ( PythonDictionary self, object key ) : object
self PythonDictionary
key object
Résultat object

setdefault() public static méthode

public static setdefault ( PythonDictionary self, object key, object defaultValue ) : object
self PythonDictionary
key object
defaultValue object
Résultat object

update() public static méthode

public static update ( CodeContext context, PythonDictionary self, object b ) : void
context CodeContext
self PythonDictionary
b object
Résultat void