Index() public static method

public static Index ( DynamicMetaObjectBinder operation, PythonIndexType index, DynamicMetaObject args ) : DynamicMetaObject
operation DynamicMetaObjectBinder
index PythonIndexType
args DynamicMetaObject
return DynamicMetaObject
 public override DynamicMetaObject /*!*/ BindSetIndex(SetIndexBinder /*!*/ binder, DynamicMetaObject /*!*/[] /*!*/ indexes, DynamicMetaObject /*!*/ value)
 {
     return(PythonProtocol.Index(binder, PythonIndexType.SetItem, ArrayUtils.Insert(this, ArrayUtils.Append(indexes, value))));
 }
 public override DynamicMetaObject /*!*/ BindGetIndex(GetIndexBinder /*!*/ binder, DynamicMetaObject /*!*/[] /*!*/ indexes)
 {
     return(PythonProtocol.Index(binder, PythonIndexType.GetItem, ArrayUtils.Insert(this, indexes)));
 }
示例#3
0
 public override DynamicMetaObject FallbackDeleteIndex(DynamicMetaObject target, DynamicMetaObject[] indexes, DynamicMetaObject errorSuggestion)
 {
     return(PythonProtocol.Index(this, PythonIndexType.DeleteItem, ArrayUtils.Insert(target, indexes), errorSuggestion));
 }
 public override DynamicMetaObject /*!*/ BindDeleteIndex(DeleteIndexBinder /*!*/ binder, DynamicMetaObject /*!*/[] /*!*/ indexes)
 {
     PerfTrack.NoteEvent(PerfTrack.Categories.Binding, "OldClass DeleteIndex" + indexes.Length);
     PerfTrack.NoteEvent(PerfTrack.Categories.BindingTarget, "OldClass DeleteIndex");
     return(PythonProtocol.Index(binder, PythonIndexType.DeleteItem, ArrayUtils.Insert(this, indexes)));
 }
 public override DynamicMetaObject /*!*/ BindSetIndex(SetIndexBinder /*!*/ binder, DynamicMetaObject /*!*/[] /*!*/ indexes, DynamicMetaObject /*!*/ value)
 {
     PerfTrack.NoteEvent(PerfTrack.Categories.Binding, "OldClass SetIndex" + indexes.Length);
     PerfTrack.NoteEvent(PerfTrack.Categories.BindingTarget, "OldClass SetIndex");
     return(PythonProtocol.Index(binder, PythonIndexType.SetItem, ArrayUtils.Insert(this, ArrayUtils.Append(indexes, value))));
 }
 public override DynamicMetaObject Bind(DynamicMetaObject target, DynamicMetaObject[] args)
 {
     return(PythonProtocol.Index(this, PythonIndexType.DeleteSlice, ArrayUtils.Insert(target, args)));
 }