Exemple #1
0
            public override MetaObject BindUnaryOperationOnMember(UnaryOperationOnMemberBinder binder)
            {
                if (IsOverridden("TryUnaryOperationOnMember"))
                {
                    return(CallMethodWithResult("TryUnaryOperationOnMember", binder, NoArgs, (e) => binder.FallbackUnaryOperationOnMember(this, e)));
                }

                return(base.BindUnaryOperationOnMember(binder));
            }
Exemple #2
0
 public virtual bool TryUnaryOperationOnMember(UnaryOperationOnMemberBinder binder, out object result)
 {
     throw new NotSupportedException();
 }
Exemple #3
0
        public override bool Equals(object obj)
        {
            UnaryOperationOnMemberBinder gma = obj as UnaryOperationOnMemberBinder;

            return(gma != null && gma._operation == _operation && gma._name == _name && gma._ignoreCase == _ignoreCase);
        }
Exemple #4
0
 /// <summary>
 /// Binds the unary operation performed on a result of get member operation on the object.
 /// </summary>
 /// <param name="binder">The binder implementing the language semantics.</param>
 /// <returns>The MetaObject representing the result of the binding.</returns>
 public virtual MetaObject BindUnaryOperationOnMember(UnaryOperationOnMemberBinder binder)
 {
     ContractUtils.RequiresNotNull(binder, "binder");
     return(binder.FallbackUnaryOperationOnMember(this));
 }
Exemple #5
0
            public override MetaObject BindUnaryOperationOnMember(UnaryOperationOnMemberBinder binder) {
                if (IsOverridden("TryUnaryOperationOnMember")) {
                    return CallMethodWithResult("TryUnaryOperationOnMember", binder, NoArgs, (e) => binder.FallbackUnaryOperationOnMember(this, e));
                }

                return base.BindUnaryOperationOnMember(binder);
            }
Exemple #6
0
 public virtual bool TryUnaryOperationOnMember(UnaryOperationOnMemberBinder binder, out object result) {
     throw new NotSupportedException();
 }
Exemple #7
0
 /// <summary>
 /// Binds the unary operation performed on a result of get member operation on the object.
 /// </summary>
 /// <param name="binder">The binder implementing the language semantics.</param>
 /// <returns>The MetaObject representing the result of the binding.</returns>
 public virtual MetaObject BindUnaryOperationOnMember(UnaryOperationOnMemberBinder binder) {
     ContractUtils.RequiresNotNull(binder, "binder");
     return binder.FallbackUnaryOperationOnMember(this);
 }