首页 新闻 会员 周边

C# ArrayList

0
[已关闭问题] 关闭于 2017-08-09 15:10

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;

人生若只如初见の的主页 人生若只如初见の | 初学一级 | 园豆:8
提问于:2017-08-09 14:03
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册