text: public int GetRowCountForBlock(int block){int startIndex = block * DBCellRecord.BLOCK_SIZE;int endIndex = startIndex + DBCellRecord.BLOCK_SIZE - 1;if (endIndex >= _rowRecords.Count)endIndex = _rowRecords.Count - 1;return endIndex - startIndex + 1;}