Beispiel #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);
            }
 /// <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);
 }
Beispiel #3
0
 public virtual bool TryBinaryOperationOnMember(BinaryOperationOnMemberBinder binder, object value, out object result) {
     throw new NotSupportedException();
 }