private readonly Expression _arg1, _arg2, _arg3; // storarg for the 2nd, 3rd, and 4th arguments. internal Block4(Expression arg0, Expression arg1, Expression arg2, Expression arg3) { _arg0 = arg0; _arg1 = arg1; _arg2 = arg2; _arg3 = arg3; }
private readonly Expression _arg1, _arg2, _arg3, _arg4; // storage for the 2nd - 5th args. internal Block5(Expression arg0, Expression arg1, Expression arg2, Expression arg3, Expression arg4) { _arg0 = arg0; _arg1 = arg1; _arg2 = arg2; _arg3 = arg3; _arg4 = arg4; }
public int IndexOf(Expression item) { if (_arg0 == item) { return(0); } for (int i = 1; i < _provider.ArgumentCount; i++) { if (_provider.GetArgument(i) == item) { return(i); } } return(-1); }
public int IndexOf(Expression item) { if (_arg0 == item) { return(0); } for (int i = 1; i < _block.ExpressionCount; i++) { if (_block.GetExpression(i) == item) { return(i); } } return(-1); }
public void Add(Expression item) { throw new InvalidOperationException(); }
public void Insert(int index, Expression item) { throw new InvalidOperationException(); }
internal ListArgumentProvider(IArgumentProvider provider, Expression arg0) { _provider = provider; _arg0 = arg0; }
public bool Remove(Expression item) { throw new InvalidOperationException(); }
public bool Contains(Expression item) { return(IndexOf(item) != -1); }
public bool Remove(Expression item) { throw new Exception(); }
public void Add(Expression item) { throw new Exception(); }
public void Insert(int index, Expression item) { throw new Exception(); }
internal BlockExpressionList(BlockExpression provider, Expression arg0) { _block = provider; _arg0 = arg0; }
private readonly Expression _arg1, _arg2; // storage for the 2nd and 3rd arguments. internal Block3(Expression arg0, Expression arg1, Expression arg2) { _arg0 = arg0; _arg1 = arg1; _arg2 = arg2; }
private readonly Expression _arg1; // storage for the 2nd argument. internal Block2(Expression arg0, Expression arg1) { _arg0 = arg0; _arg1 = arg1; }