public virtual MetaObject BindBinaryOperation(BinaryOperationBinder binder, MetaObject arg) { ContractUtils.RequiresNotNull(binder, "binder"); return(binder.FallbackBinaryOperation(this, arg)); }
public override MetaObject BindBinaryOperation(BinaryOperationBinder binder, MetaObject arg) { if (IsOverridden("TryBinaryOperation")) { return CallMethodWithResult("TryBinaryOperation", binder, GetArgs(arg), (e) => binder.FallbackBinaryOperation(this, arg, e)); } return base.BindBinaryOperation(binder, arg); }
public override bool Equals(object obj) { BinaryOperationBinder oa = obj as BinaryOperationBinder; return(oa != null && oa._operation == _operation); }
public virtual bool TryBinaryOperation(BinaryOperationBinder binder, object arg, out object result) { throw new NotSupportedException(); }
public virtual MetaObject BindBinaryOperation(BinaryOperationBinder binder, MetaObject arg) { ContractUtils.RequiresNotNull(binder, "binder"); return binder.FallbackBinaryOperation(this, arg); }