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)); }
public virtual bool TryUnaryOperationOnIndex(UnaryOperationOnIndexBinder binder, object[] indexes, out object result) { throw new NotSupportedException(); }
/// <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)); }
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); }
public override bool Equals(object obj) { UnaryOperationOnIndexBinder ia = obj as UnaryOperationOnIndexBinder; return(ia != null && ia._operation == _operation && ia._arguments.ListEquals(_arguments)); }
/// <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); }