Directory.GetFiles("Your_Path", "Sample*")
foreach
foreach (string filePath in Directory.EnumerateFiles("...source path...", "Sample*.xml")) { XDocument document = XDocument.Load(filePath); ... convert the document to a PDF file here ... }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)