データテーブルをに変換する高速な方法はありList<List<string>>
ますか?
今、私はやっています
for (int rowIndex = 1; rowIndex <= stats.EndRowIndex; rowIndex++)
{
List<string> lstOneRowElements = new List<string>();
for (int colIndex = 1; colIndex <= stats.EndColumnIndex; colIndex++)
{
lstOneRowElements.Add(excelDoc.GetCellValueAsString(rowIndex, colIndex).Trim());
}
lstAllData.Add(lstOneRowElements);
}
どこ
private List<List<string>> lstAllData { get; set; }
それを速くするより良い方法はありますか?