コード例 #1
0
ファイル: DynamicObject.cs プロジェクト: gaybro8777/ironruby
            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));
            }
コード例 #2
0
ファイル: DynamicObject.cs プロジェクト: mscottford/ironruby
            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);
            }
コード例 #3
0
ファイル: MetaObject.cs プロジェクト: gaybro8777/ironruby
 /// <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));
 }
コード例 #4
0
ファイル: MetaObject.cs プロジェクト: mscottford/ironruby
 /// <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);
 }