What is wrong with the code?
public static bool ParseDir(string directory) //вызываем этот метод { bool isRDK = false; Directory.GetFiles(directory) .Select(file => new FileInfo(file)) .Any(f => f.Extension == ".rdk") .Select(f => f.FullName) .ToList() .ForEach(x => { Console.WriteLine(x); FileParser.ExportFile(x); isRDK = true; }); return isRDK; }
Why swears: "bool" does not contain a definition for "Select"