Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created August 16, 2019 09:39
Show Gist options
  • Save bjoerntx/22d477ed78d48fb6fe387995c78a8b95 to your computer and use it in GitHub Desktop.
Save bjoerntx/22d477ed78d48fb6fe387995c78a8b95 to your computer and use it in GitHub Desktop.
// read all templates
String[] files = Directory.GetFiles(sTemplateFolder);
// loop through all files parallel
Parallel.ForEach(files, (currentFile) =>
{
MergeDocument(currentFile, report); // merge template
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment