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

                return(base.BindUnaryOperationOnIndex(binder, indexes));
            }
예제 #2
0
 public virtual bool TryUnaryOperationOnIndex(UnaryOperationOnIndexBinder binder, object[] indexes, out object result)
 {
     throw new NotSupportedException();
 }
예제 #3
0
 /// <summary>
 /// Binds the unary operation performed on a result of index operation on the object.
 /// </summary>
 /// <param name="binder">The binder implementing the language semantics.</param>
 /// <param name="indexes">The array of MetaObject representing the indexes for the index operation.</param>
 /// <returns>The MetaObject representing the result of the binding.</returns>
 public virtual MetaObject BindUnaryOperationOnIndex(UnaryOperationOnIndexBinder binder, MetaObject[] indexes)
 {
     ContractUtils.RequiresNotNull(binder, "binder");
     return(binder.FallbackUnaryOperationOnIndex(this, indexes));
 }
예제 #4
0
            public override MetaObject BindUnaryOperationOnIndex(UnaryOperationOnIndexBinder binder, MetaObject[] indexes) {
                if (IsOverridden("TryUnaryOperationOnIndex")) {
                    return CallMethodWithResult("TryUnaryOperationOnIndex", binder, GetArgArray(indexes), (e) => binder.FallbackUnaryOperationOnIndex(this, indexes, e));
                }

                return base.BindUnaryOperationOnIndex(binder, indexes);
            }
예제 #5
0
 public virtual bool TryUnaryOperationOnIndex(UnaryOperationOnIndexBinder binder, object[] indexes, out object result) {
     throw new NotSupportedException();
 }
        public override bool Equals(object obj)
        {
            UnaryOperationOnIndexBinder ia = obj as UnaryOperationOnIndexBinder;

            return(ia != null && ia._operation == _operation && ia._arguments.ListEquals(_arguments));
        }
예제 #7
0
 /// <summary>
 /// Binds the unary operation performed on a result of index operation on the object.
 /// </summary>
 /// <param name="binder">The binder implementing the language semantics.</param>
 /// <param name="indexes">The array of MetaObject representing the indexes for the index operation.</param>
 /// <returns>The MetaObject representing the result of the binding.</returns>
 public virtual MetaObject BindUnaryOperationOnIndex(UnaryOperationOnIndexBinder binder, MetaObject[] indexes) {
     ContractUtils.RequiresNotNull(binder, "binder");
     return binder.FallbackUnaryOperationOnIndex(this, indexes);
 }