There are a lot of methods to convert a string/List to a list of something else.
Out of curiosity I can't find if there is a way to do it this way
Directory.EnumerateFiles(@"C:\Drivers").ToList<FileInfo>();
Or Either
new List<string>(Directory.EnumerateFiles(@"C:\Drivers")).Cast<FileInfo>();`
`
As fileinfo takes FileInfo(path) as parameter, there is a way to do like this or a short oneliner which doesn't involve linq Select(x => new FileInfo(x) or something like that?
There is nothing built-in that does this (binding to a constructor). I am not sure why you would want to avoid Select(x => new FileInfo(x)). However, you could if you wanted to define an extension method such as the below Construct to perform the binding: