title: c# LINQ joining to comma separated string
body: <p>I have a string of comma separated values called driverids.</p>
  
  <ol>
  <li><p>Should I use the comma separated list or the array that this comma separated list comes from to use this in a join.</p></li>
  <li><p>How would I use a join in linq to these driverids? </p></li>
  </ol>
  
  <p><br></p>
  
  <pre><code>_currentDriverData.AddRange(elementsCurrent.Join(driverids)
  
  // gets distinct driver ids from the driver duty status change logs;
  string driverids = string.Join(",", _logsDutyStatusChange
                           .Select(item =&gt; item.did)
                           .Distinct()
                           .ToArray());
  
  //gets all current driver information
  //_currentDriverData.AddRange(elementsCurrent.Where(drivers)
  
  _currentDriverData.AddRange(elementsCurrent.Join(driverids).Select.........
  </code></pre>