I want a select the first group in the list. Is there a better way to do this.
Here is how I'm doing it:
var match = (from m in recordList select m).FirstOrDefault();
var matches = recordList.Where(d => d.DateDetails == match.DateDetails);
var lookup = matches.ToLookup(a => a.DateDetails).First();
lookaheadList = lookup.ToList();
I'm selecting the first group and pushing it into a second list called lookaheadlist.
My DATA is as follows:
DateDetails Track Details
0025 ABCD
0025 EFGH
0030 XXXXX
0030 XXXXX