for (int i = 0; i < 7; i++)
            {

if (!listColspan.Exists(delegate(string str){if (str==i.ToString()) return true;else return false;}) )
                {
                    sbDrugSolutionRow.Append("<td>&nbsp;</td>");
                }

}

等效于

 

for (int i = 0; i < 7; i++)
            {
                if (!listColspan.Contains(i.ToString()))
                {
                    sbDrugSolutionRow.Append("<td>&nbsp;</td>");
                }

}

 

相关文章:

  • 2022-12-23
  • 2021-09-08
  • 2021-09-23
  • 2021-07-18
  • 2022-12-23
  • 2021-10-09
  • 2021-10-01
猜你喜欢
  • 2021-12-19
  • 2022-01-20
  • 2021-09-10
  • 2022-12-23
  • 2021-09-14
  • 2022-01-13
相关资源
相似解决方案