예제 #1
0
 public virtual MetaObject BindBinaryOperation(BinaryOperationBinder binder, MetaObject arg)
 {
     ContractUtils.RequiresNotNull(binder, "binder");
     return(binder.FallbackBinaryOperation(this, arg));
 }
예제 #2
0
            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);
            }
예제 #3
0
        public override bool Equals(object obj)
        {
            BinaryOperationBinder oa = obj as BinaryOperationBinder;

            return(oa != null && oa._operation == _operation);
        }
예제 #4
0
 public virtual bool TryBinaryOperation(BinaryOperationBinder binder, object arg, out object result) {
     throw new NotSupportedException();
 }
예제 #5
0
 public virtual MetaObject BindBinaryOperation(BinaryOperationBinder binder, MetaObject arg) {
     ContractUtils.RequiresNotNull(binder, "binder");
     return binder.FallbackBinaryOperation(this, arg);
 }