private static bool WriteSheetTyped <T>(Dataset <T> sheetData, ExcelWorksheet sheet) { if (sheetData.Any()) { sheet.WriteData(sheetData); return(true); } return(false); }