How to add a condition here if f != null ?
f != null
var files = filesA.Select((f) => new FileInfo(f))
Use the Where method to filter. Like this:
var files = filesA.Where(f => f != null).Select(f => new FileInfo(f));
Source: https://ru.stackoverflow.com/questions/668920/More articles:Background image for ImageButtonHow to combine two forms in the program?Spring transfer of model from controller to jsStoring the old value after handling the JS eventAccess to the file through the applicationHow to write a regular expression?No application connection over the network (Ukraine)Need help with forms in c ++#pragma managedChange the color of the picture in the pictureboxAll Articles