/// <summary>
 /// Constructor of the OperationOnIndexBinder object, representing "a.b (op)= c" operation.
 /// </summary>
 /// <param name="operation">Binary operation to be performed.</param>
 /// <param name="name">Name of the member for the operation.</param>
 /// <param name="ignoreCase">Ignore case of the member.</param>
 protected BinaryOperationOnMemberBinder(ExpressionType operation, string name, bool ignoreCase)
 {
     ContractUtils.RequiresNotNull(name, "name");
     ContractUtils.Requires(BinaryOperationBinder.OperationIsValid(operation), "operation");
     _operation  = operation;
     _name       = name;
     _ignoreCase = ignoreCase;
 }
Example #2
0
 protected BinaryOperationOnIndexBinder(ExpressionType operation, IEnumerable <ArgumentInfo> arguments)
 {
     ContractUtils.Requires(BinaryOperationBinder.OperationIsValid(operation), "operation");
     _operation = operation;
     _arguments = arguments.ToReadOnly();
 }