public void ReplaceColumn(ColumnExpression existingColumn, ColumnExpression newColumn)
        {
            int index = _columns.IndexOf(existingColumn);

            if (index != -1)
            {
                _columns[index] = newColumn;
                int baseIndex = ExpressionList.IndexOf(existingColumn);
                ExpressionList[baseIndex] = newColumn;
            }
        }
Пример #2
0
 public void InsertTest()
 {
     var list = new ExpressionList<ConstantTypes.Integer>();
     var one = new ConstantTypes.Integer(1);
     var two = new ConstantTypes.Integer(2);
     list.Add(one);
     list.Insert(0, two);
     Assert.IsTrue(list.IndexOf(one) == 1);
     Assert.IsTrue(list.IndexOf(two) == 0);
 }