I have a string of comma separated values called driverids.
Should I use the comma separated list or the array that this comma separated list comes from to use this in a join.
How would I use a join in linq to these driverids?
_currentDriverData.AddRange(elementsCurrent.Join(driverids)
// gets distinct driver ids from the driver duty status change logs;
string driverids = string.Join(",", _logsDutyStatusChange
.Select(item => item.did)
.Distinct()
.ToArray());
//gets all current driver information
//_currentDriverData.AddRange(elementsCurrent.Where(drivers)
_currentDriverData.AddRange(elementsCurrent.Join(driverids).Select.........