Esempio n. 1
0
        private static ExcelWorksheet FromList <T>(this ExcelWorksheet sheet, IEnumerable <T> list) where T : class, ISheetRow, new()
        {
            sheet.CreateTitleRow <T>();
            int index = 2;

            foreach (var item in list)
            {
                sheet.CreateContentRow(item, index);
                index++;
            }
            return(sheet);
        }