Exemplo n.º 1
0
            public override MetaObject BindBinaryOperationOnMember(BinaryOperationOnMemberBinder binder, MetaObject value)
            {
                if (IsOverridden("TryBinaryOperationOnMember"))
                {
                    return(CallMethodWithResult("TryBinaryOperationOnMember", binder, GetArgs(value), (e) => binder.FallbackBinaryOperationOnMember(this, value, e)));
                }

                return(base.BindBinaryOperationOnMember(binder, value));
            }
Exemplo n.º 2
0
            public override MetaObject BindBinaryOperationOnMember(BinaryOperationOnMemberBinder binder, MetaObject value) {
                if (IsOverridden("TryBinaryOperationOnMember")) {
                    return CallMethodWithResult("TryBinaryOperationOnMember", binder, GetArgs(value), (e) => binder.FallbackBinaryOperationOnMember(this, value, e));
                }

                return base.BindBinaryOperationOnMember(binder, value);
            }
Exemplo n.º 3
0
 /// <summary>
 /// Binds an operation a.b (op)= c
 /// </summary>
 /// <param name="binder">Binder implementing the language semantics.</param>
 /// <param name="value">Meta Object representing the right-side argument.</param>
 /// <returns>MetaObject representing the result of the binding.</returns>
 public virtual MetaObject BindBinaryOperationOnMember(BinaryOperationOnMemberBinder binder, MetaObject value)
 {
     ContractUtils.RequiresNotNull(binder, "binder");
     return(binder.FallbackBinaryOperationOnMember(this, value));
 }
Exemplo n.º 4
0
 /// <summary>
 /// Binds an operation a.b (op)= c
 /// </summary>
 /// <param name="binder">Binder implementing the language semantics.</param>
 /// <param name="value">Meta Object representing the right-side argument.</param>
 /// <returns>MetaObject representing the result of the binding.</returns>
 public virtual MetaObject BindBinaryOperationOnMember(BinaryOperationOnMemberBinder binder, MetaObject value) {
     ContractUtils.RequiresNotNull(binder, "binder");
     return binder.FallbackBinaryOperationOnMember(this, value);
 }