예제 #1
0
        private static ISheet FromList <T>(this ISheet sheet, IEnumerable <T> list) where T : class, ISheetRow, new()
        {
            sheet.CreateTitleRow <T>();
            int index = 1;

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