For循环List<List<T>>

      //bool bResult = true;
            //for (int irow = 0; irow < standardcells.Count(); irow++)
            //{
            //    List<ICell> row = standardcells[irow];
            //    for (int icol = 0; icol < row.Count(); icol++)
            //    {
            //        try
            //        {
            //            string std = row[icol].StringCellValue;
            //            string other = comparecells[irow][icol].StringCellValue ?? "";
            //            if (std.Trim() != other.Trim())
            //            {
            //                bResult = false;
            //                break;
            //            }
            //        }
            //        catch (Exception ex)
            //        {
            //            bResult = false;
            //        }
            //    }
            //    if (!bResult)
            //    {
            //        break;
            //    }
            //}
            //if (bResult)
            //{
            //    this.label_compareMessage.Text = "表头一致";
            //}
            //else
            //{
            //    this.label_compareMessage.Text = "表头不一致";
            //}

猜你喜欢

转载自www.cnblogs.com/wmm-pcy/p/9752839.html