public override MetaObject BindUnaryOperationOnMember(UnaryOperationOnMemberBinder binder) { if (IsOverridden("TryUnaryOperationOnMember")) { return(CallMethodWithResult("TryUnaryOperationOnMember", binder, NoArgs, (e) => binder.FallbackUnaryOperationOnMember(this, e))); } return(base.BindUnaryOperationOnMember(binder)); }
public virtual bool TryUnaryOperationOnMember(UnaryOperationOnMemberBinder binder, out object result) { throw new NotSupportedException(); }
public override bool Equals(object obj) { UnaryOperationOnMemberBinder gma = obj as UnaryOperationOnMemberBinder; return(gma != null && gma._operation == _operation && gma._name == _name && gma._ignoreCase == _ignoreCase); }
/// <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)); }
public override MetaObject BindUnaryOperationOnMember(UnaryOperationOnMemberBinder binder) { if (IsOverridden("TryUnaryOperationOnMember")) { return CallMethodWithResult("TryUnaryOperationOnMember", binder, NoArgs, (e) => binder.FallbackUnaryOperationOnMember(this, e)); } return base.BindUnaryOperationOnMember(binder); }
/// <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); }