3
我有一個逗號分隔的字符串稱爲driverids。c#LINQ加入到逗號分隔字符串
我應該使用逗號分隔的列表還是使用逗號分隔列表的數組來在連接中使用它。
我該如何在linq中使用join到這些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.........
什麼是你想給他們加盟? – recursive 2011-04-18 15:37:38
我想在我的選擇中只獲取那些驅動程序ID – user380432 2011-04-18 15:39:18