コード例 #1
0
ファイル: DynamicObject.cs プロジェクト: gaybro8777/ironruby
            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));
            }
コード例 #2
0
ファイル: DynamicObject.cs プロジェクト: gaybro8777/ironruby
 public virtual bool TryBinaryOperationOnMember(BinaryOperationOnMemberBinder binder, object value, out object result)
 {
     throw new NotSupportedException();
 }
コード例 #3
0
        public override bool Equals(object obj)
        {
            BinaryOperationOnMemberBinder gma = obj as BinaryOperationOnMemberBinder;

            return(gma != null && gma._operation == _operation && gma._name == _name && gma._ignoreCase == _ignoreCase);
        }
コード例 #4
0
ファイル: MetaObject.cs プロジェクト: gaybro8777/ironruby
 /// <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));
 }
コード例 #5
0
ファイル: DynamicObject.cs プロジェクト: mscottford/ironruby
            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);
            }
コード例 #6
0
ファイル: DynamicObject.cs プロジェクト: mscottford/ironruby
 public virtual bool TryBinaryOperationOnMember(BinaryOperationOnMemberBinder binder, object value, out object result) {
     throw new NotSupportedException();
 }
コード例 #7
0
ファイル: MetaObject.cs プロジェクト: mscottford/ironruby
 /// <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);
 }