Exemple #1
0
            public override DynamicMetaObject BindUnaryOperationOnIndex(UnaryOperationOnIndexBinder binder, DynamicMetaObject[] indexes) {
                if (IsOverridden("TryUnaryOperationOnIndex")) {
                    return CallMethodWithResult("TryUnaryOperationOnIndex", binder, GetArgArray(indexes), (e) => binder.FallbackUnaryOperationOnIndex(this, indexes, e));
                }

                return base.BindUnaryOperationOnIndex(binder, indexes);
            }
 /// <summary>
 /// Performs the binding of the dynamic unary operation on index.
 /// </summary>
 /// <param name="binder">An instance of the <see cref="UnaryOperationOnIndexBinder"/> that represents the details of the dynamic operation.</param>
 /// <param name="indexes">An array of <see cref="DynamicMetaObject"/> instances - indexes for the delete index operation.</param>
 /// <returns>The new <see cref="DynamicMetaObject"/> representing the result of the binding.</returns>
 public virtual DynamicMetaObject BindUnaryOperationOnIndex(UnaryOperationOnIndexBinder binder, DynamicMetaObject[] indexes) {
     ContractUtils.RequiresNotNull(binder, "binder");
     return binder.FallbackUnaryOperationOnIndex(this, indexes);
 }
Exemple #3
0
 public virtual bool TryUnaryOperationOnIndex(UnaryOperationOnIndexBinder binder, object[] indexes, out object result) {
     throw new NotSupportedException();
 }