I would like to convert the below \"foreach\" statement to a LINQ query that returns a substring of the file name into a list:
IList fileNameSu
IList fileNameSubstringValues = ( from file in codeToGetFileListGoesHere select file.Name. Substring(0, file.Name.Length - (file.Name.Length - file.Name.IndexOf(".config.xml"))).ToList();
Enjoy =)