C# Class IronPython.Runtime.Types.PythonTypeSlot

Afficher le fichier Open project: jschementi/iron Class Usage Examples

Private Properties

Свойство Type Description
IsSetDescriptor bool
MakeGetExpression void
TryDeleteValue bool
TryGetValue bool
TrySetValue bool

Méthodes publiques

Méthode Description
__get__ ( CodeContext context, object instance, [ typeContext ) : object

Private Methods

Méthode Description
IsSetDescriptor ( CodeContext context, IronPython.Runtime.Types.PythonType owner ) : bool
MakeGetExpression ( PythonBinder binder, Expression codeContext, DynamicMetaObject instance, DynamicMetaObject owner, ConditionalBuilder builder ) : void

Gets an expression which is used for accessing this slot. If the slot lookup fails the error expression is used again. The default implementation just calls the TryGetValue method. Subtypes of PythonTypeSlot can override this and provide a more optimal implementation.

TryDeleteValue ( CodeContext context, object instance, IronPython.Runtime.Types.PythonType owner ) : bool

Deletes the value stored in the slot from the instance.

TryGetValue ( CodeContext context, object instance, IronPython.Runtime.Types.PythonType owner, object &value ) : bool
TrySetValue ( CodeContext context, object instance, IronPython.Runtime.Types.PythonType owner, object value ) : bool

Sets the value of the slot for the given instance.

Method Details

__get__() public méthode

public __get__ ( CodeContext context, object instance, [ typeContext ) : object
context CodeContext
instance object
typeContext [
Résultat object