Exemplo n.º 1
0
            public override DynamicMetaObject BindBinaryOperationOnMember(BinaryOperationOnMemberBinder binder, DynamicMetaObject 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
 /// <summary>
 /// Performs the binding of the dynamic binary operation on member.
 /// </summary>
 /// <param name="binder">An instance of the <see cref="BinaryOperationOnMemberBinder"/> that represents the details of the dynamic operation.</param>
 /// <param name="value">An instance of the <see cref="DynamicMetaObject"/> representing the right hand side value of the operation.</param>
 /// <returns>The new <see cref="DynamicMetaObject"/> representing the result of the binding.</returns>
 public virtual DynamicMetaObject BindBinaryOperationOnMember(BinaryOperationOnMemberBinder binder, DynamicMetaObject value) {
     ContractUtils.RequiresNotNull(binder, "binder");
     return binder.FallbackBinaryOperationOnMember(this, value);
 }
Exemplo n.º 3
0
 public virtual bool TryBinaryOperationOnMember(BinaryOperationOnMemberBinder binder, object value, out object result) {
     throw new NotSupportedException();
 }