LinQ中List,取某個字段,而後用逗號拼接

string htDetails = string.Join(",", DemoList.Select(t => t.id).Distinct().ToArray()); html 轉載於:https://www.cnblogs.com/puzi0315/p/11077086.htmlpost
相關文章
相關標籤/搜索