for (int i = 0; i < _entity.Count; i++)
{
if (_entity[i].限定内容 == "变更前")
{
for (int j = i + 1; j < _entity.Count; j++)
{
if (_entity[j].限定内容 == "变更后")
{
string s = _entity[j].启用日期;
s = s.Insert(6, "-").Insert(4, "-");
DateTime d = Convert.ToDateTime(s);
d = d.AddDays(-1);
s = d.ToString("yyyyMMdd");
_entity[i].停用日期 = s;
list.Add(m_dbservices.updateExcel(_entity[i]));
list.Add(m_dbservices.updateinsertExcel(_entity[i], _entity[j]));
break;
}
}
}
result = m_exesql.ExecSqlTran(list);//返回数据
lList.Add(result);
}
return lList;
要怎么放才能不影响llist集合里面返回的值
ArrayList lList = new ArrayList();
List<string> list = new List<string>();
int result = 0;