Что не так с кодом?
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;
}
Почему ругается: "bool" не содержит определение для "Select"