Hi there, I have the following:
var selectedFilesToReplace = new List<string>();
foreach (string file in files)
{
selectedFilesToReplace.AddRange(listUploadedFiles
.Where(x => Path.GetFileNameWithoutExtension(x) == file));
}
that fill the selectedFilesToReplace collection with a set of FULL path files. I need to select only the file name with its extension.
Is this possible in a single Linq expression?