2
Vote

System.Exception: ExcelCell Constructor: Negative row and column numbers are not allowed at OfficeOpenXml.ExcelCell..ctor(ExcelWorksheet xlWorksheet, Int32 row, Int32 col) in ExcelCell.cs:line 68

description

if (row < 1 || col < 1) throw new Exception("ExcelCell Constructor: Negative row and column numbers are not allowed");
 
0 (zero) is not negative number -)
 
Most programmers expect indexing to start from zero, i have spent 10 minutes tracing my code to find where i use negative number (-1, -2, etc) before i decided to look in ExcelPackage source code;
 
This is not a bug, but confusing thing;

comments