public override DynamicMetaObject BindUnaryOperationOnMember(UnaryOperationOnMemberBinder binder) { if (IsOverridden("TryUnaryOperationOnMember")) { return CallMethodWithResult("TryUnaryOperationOnMember", binder, NoArgs, (e) => binder.FallbackUnaryOperationOnMember(this, e)); } return base.BindUnaryOperationOnMember(binder); }
/// <summary> /// Performs the binding of the dynamic unary operation on member. /// </summary> /// <param name="binder">An instance of the <see cref="UnaryOperationOnMemberBinder"/> that represents the details of the dynamic operation.</param> /// <returns>The new <see cref="DynamicMetaObject"/> representing the result of the binding.</returns> public virtual DynamicMetaObject BindUnaryOperationOnMember(UnaryOperationOnMemberBinder binder) { ContractUtils.RequiresNotNull(binder, "binder"); return binder.FallbackUnaryOperationOnMember(this); }
public virtual bool TryUnaryOperationOnMember(UnaryOperationOnMemberBinder binder, out object result) { throw new NotSupportedException(); }