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)); }
public virtual bool TryBinaryOperationOnMember(BinaryOperationOnMemberBinder binder, object value, out object result) { throw new NotSupportedException(); }
public override bool Equals(object obj) { BinaryOperationOnMemberBinder gma = obj as BinaryOperationOnMemberBinder; return(gma != null && gma._operation == _operation && gma._name == _name && gma._ignoreCase == _ignoreCase); }
/// <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)); }
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); }
/// <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); }