private void InitContentDict() { int currentRow = 4; content = new SortedDictionary <string, ExcelRow>(); string rowContent = ""; while (ws.Cells[currentRow, 2].Value != null) { ExcelRow rowData = new ExcelRow(); for (int i = 3; i <= 12; i++) { rowContent = ws.Cells[currentRow, i].Value.ToString(); rowData.SetData(i, rowContent); } content.Add(ws.Cells[currentRow, 2].Value.ToString(), rowData); currentRow++; } }