How to have nested query with LINQ
This line: var csvLinesData = csvlines.Skip(1).Select(l => l.Split(‘,’).ToArray()); produces an IEnumerble<string[]>. When you select it, you can access the columns of your CSV, as you do in this line: CSRName = data[12], The problem with this line: csvLinesData.Count(w => w.direction=’I’) is that an element of csvLinesData is a string[] which doesn’t have a direction field … Read more