C# Class IronPython.Runtime.Types.PythonTypeSlot

ファイルを表示 Open project: jschementi/iron Class Usage Examples

Private Properties

Property Type Description
IsSetDescriptor bool
MakeGetExpression void
TryDeleteValue bool
TryGetValue bool
TrySetValue bool

Public Methods

Method Description
__get__ ( CodeContext context, object instance, [ typeContext ) : object

Private Methods

Method 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 method

public __get__ ( CodeContext context, object instance, [ typeContext ) : object
context CodeContext
instance object
typeContext [
return object