Help me improve the lambda below with adding another conditon like
Get me all .csv with no matching .wav file. Example, say "sample.csv" and "sample.wav", then I dont want to collect "sample.csv".
Files = new DirectoryInfo(txtStartPath.Text)
.EnumerateFiles("*.csv")
.Where(file => file.CreationTime < DateTime.Now.AddDays(-ageOfFile))
.ToList();
You have to get list of
wav
files first:and then you can use it as part of
Where
condition: