public override bool Equals(object obj) { UnaryOperationBinder oa = obj as UnaryOperationBinder; return(oa != null && oa._operation == _operation); }
public virtual MetaObject BindUnaryOperation(UnaryOperationBinder binder) { ContractUtils.RequiresNotNull(binder, "binder"); return(binder.FallbackUnaryOperation(this)); }
public override MetaObject BindUnaryOperation(UnaryOperationBinder binder) { if (IsOverridden("TryUnaryOperation")) { return CallMethodWithResult("TryUnaryOperation", binder, NoArgs, (e) => binder.FallbackUnaryOperation(this, e)); } return base.BindUnaryOperation(binder); }
public virtual bool TryUnaryOperation(UnaryOperationBinder binder, out object result) { throw new NotSupportedException(); }
protected UnaryOperationOnIndexBinder(ExpressionType operation, IEnumerable <ArgumentInfo> arguments) { ContractUtils.Requires(UnaryOperationBinder.OperationIsValid(operation), "operation"); _operation = operation; _arguments = arguments.ToReadOnly(); }
public virtual MetaObject BindUnaryOperation(UnaryOperationBinder binder) { ContractUtils.RequiresNotNull(binder, "binder"); return binder.FallbackUnaryOperation(this); }