コード例 #1
0
ファイル: DynamicObject.cs プロジェクト: gaybro8777/ironruby
            public override MetaObject BindUnaryOperationOnIndex(UnaryOperationOnIndexBinder binder, MetaObject[] indexes)
            {
                if (IsOverridden("TryUnaryOperationOnIndex"))
                {
                    return(CallMethodWithResult("TryUnaryOperationOnIndex", binder, GetArgArray(indexes), (e) => binder.FallbackUnaryOperationOnIndex(this, indexes, e)));
                }

                return(base.BindUnaryOperationOnIndex(binder, indexes));
            }
コード例 #2
0
ファイル: DynamicObject.cs プロジェクト: gaybro8777/ironruby
 public virtual bool TryUnaryOperationOnIndex(UnaryOperationOnIndexBinder binder, object[] indexes, out object result)
 {
     throw new NotSupportedException();
 }
コード例 #3
0
ファイル: MetaObject.cs プロジェクト: gaybro8777/ironruby
 /// <summary>
 /// Binds the unary operation performed on a result of index operation on the object.
 /// </summary>
 /// <param name="binder">The binder implementing the language semantics.</param>
 /// <param name="indexes">The array of MetaObject representing the indexes for the index operation.</param>
 /// <returns>The MetaObject representing the result of the binding.</returns>
 public virtual MetaObject BindUnaryOperationOnIndex(UnaryOperationOnIndexBinder binder, MetaObject[] indexes)
 {
     ContractUtils.RequiresNotNull(binder, "binder");
     return(binder.FallbackUnaryOperationOnIndex(this, indexes));
 }
コード例 #4
0
ファイル: DynamicObject.cs プロジェクト: mscottford/ironruby
            public override MetaObject BindUnaryOperationOnIndex(UnaryOperationOnIndexBinder binder, MetaObject[] indexes) {
                if (IsOverridden("TryUnaryOperationOnIndex")) {
                    return CallMethodWithResult("TryUnaryOperationOnIndex", binder, GetArgArray(indexes), (e) => binder.FallbackUnaryOperationOnIndex(this, indexes, e));
                }

                return base.BindUnaryOperationOnIndex(binder, indexes);
            }
コード例 #5
0
ファイル: DynamicObject.cs プロジェクト: mscottford/ironruby
 public virtual bool TryUnaryOperationOnIndex(UnaryOperationOnIndexBinder binder, object[] indexes, out object result) {
     throw new NotSupportedException();
 }
コード例 #6
0
        public override bool Equals(object obj)
        {
            UnaryOperationOnIndexBinder ia = obj as UnaryOperationOnIndexBinder;

            return(ia != null && ia._operation == _operation && ia._arguments.ListEquals(_arguments));
        }
コード例 #7
0
ファイル: MetaObject.cs プロジェクト: mscottford/ironruby
 /// <summary>
 /// Binds the unary operation performed on a result of index operation on the object.
 /// </summary>
 /// <param name="binder">The binder implementing the language semantics.</param>
 /// <param name="indexes">The array of MetaObject representing the indexes for the index operation.</param>
 /// <returns>The MetaObject representing the result of the binding.</returns>
 public virtual MetaObject BindUnaryOperationOnIndex(UnaryOperationOnIndexBinder binder, MetaObject[] indexes) {
     ContractUtils.RequiresNotNull(binder, "binder");
     return binder.FallbackUnaryOperationOnIndex(this, indexes);
 }