public static byte[] ToExcel <T>(this IEnumerable <T> items, string sheetName = null) { return(ArrayToExcel.CreateExcel(items, scheme => { scheme.SheetName = sheetName; })); }
public static byte[] ToExcel <T>(this IEnumerable <T> items, Action <ArrayToExcelScheme <T> > schemeBuilder) { return(ArrayToExcel.CreateExcel(items, schemeBuilder)); }