public override MetaObject BindBinaryOperationOnIndex(BinaryOperationOnIndexBinder binder, MetaObject[] indexes, MetaObject value) { if (IsOverridden("TryBinaryOperationOnIndex")) { return(CallMethodWithResult("TryBinaryOperationOnIndex", binder, GetArgArray(indexes, value), (e) => binder.FallbackBinaryOperationOnIndex(this, indexes, value, e))); } return(base.BindBinaryOperationOnIndex(binder, indexes, value)); }
public override MetaObject BindBinaryOperationOnIndex(BinaryOperationOnIndexBinder binder, MetaObject[] indexes, MetaObject value) { if (IsOverridden("TryBinaryOperationOnIndex")) { return CallMethodWithResult("TryBinaryOperationOnIndex", binder, GetArgArray(indexes, value), (e) => binder.FallbackBinaryOperationOnIndex(this, indexes, value, e)); } return base.BindBinaryOperationOnIndex(binder, indexes, value); }
/// <summary> /// Binds an operation a[i,j,k] (op)= c /// </summary> /// <param name="binder">Binder implementing the language semantics.</param> /// <param name="indexes">The array of MetaObjects representing the indexes for the index operation.</param> /// <param name="value">The MetaObject representing the right-hand value of the operation.</param> /// <returns>MetaObject representing the result of the binding.</returns> public virtual MetaObject BindBinaryOperationOnIndex(BinaryOperationOnIndexBinder binder, MetaObject[] indexes, MetaObject value) { ContractUtils.RequiresNotNull(binder, "binder"); return(binder.FallbackBinaryOperationOnIndex(this, indexes, value)); }
/// <summary> /// Binds an operation a[i,j,k] (op)= c /// </summary> /// <param name="binder">Binder implementing the language semantics.</param> /// <param name="indexes">The array of MetaObjects representing the indexes for the index operation.</param> /// <param name="value">The MetaObject representing the right-hand value of the operation.</param> /// <returns>MetaObject representing the result of the binding.</returns> public virtual MetaObject BindBinaryOperationOnIndex(BinaryOperationOnIndexBinder binder, MetaObject[] indexes, MetaObject value) { ContractUtils.RequiresNotNull(binder, "binder"); return binder.FallbackBinaryOperationOnIndex(this, indexes, value); }