15
แปลงรายการเป็นสตริงที่คั่นด้วยเครื่องหมายจุลภาค
รหัสของฉันเป็นดังนี้: public void ReadListItem() { List<uint> lst = new List<uint>() { 1, 2, 3, 4, 5 }; string str = string.Empty; foreach (var item in lst) str = str + item + ","; str = str.Remove(str.Length - 1); Console.WriteLine(str); } เอาท์พุท: 1,2,3,4,5 วิธีที่ง่ายที่สุดในการแปลงList<uint>เป็นสตริงคั่นด้วยเครื่องหมายจุลภาคคืออะไร?