EPPlus - sheet.Column(int) Modifies Sheet Dimension?
Clash Royale CLAN TAG #URR8PPP EPPlus - sheet.Column(int) Modifies Sheet Dimension? Running EPPlus v.4.5.2.1. It looks like getting a Column object from a worksheet is somehow modifying the worksheet itself. The following code works fine: int rowCount = sheet.Dimension.End.Row; ExcelColumn theCol = sheet.Column(col); for (int row = 1; row < rowCount; row++) { // Do stuff } But this throws a NullReferenceException . sheet.Dimension is null . NullReferenceException sheet.Dimension null ExcelColumn theCol = sheet.Column(col); for (int row = 1; row < sheet.Dimension.End.Row; row ++) { // Do stuff } Anyone know if this is expected behavior? Note: after reading this issue on GitHub, I realized that the code in question isn't doing what I thought it was doing, so this question might not have any real practical use. I'm just trying to get a handle on why EPPlus behaves the way it does so I can avoid errors in the future. ...