Skip to content
TheChatArchiveThe Chat Archive
gpt-3.5-turbo-0301· OpenAIAi2 WildChat-4.8M (AI2)

换成Lamda方式 List<POItem> poItems = new List<POItem>(); poItems.Add(new POItem() { POItem =…

  1. User

    换成Lamda方式 List poItems = new List(); poItems.Add(new POItem() { PO_Item = "00010" }); poItems.Add(new POItem() { PO_Item = "00020" }); poItems.Add(new POItem() { PO_Item = "00030" }); string los = string.Join(",", from x in poItems select x.PO_Item).ToString();

  2. Assistant

    List poItems = new List(); poItems.Add(new POItem() { PO_Item = "00010" }); poItems.Add(new POItem() { PO_Item = "00020" }); poItems.Add(new POItem() { PO_Item = "00030" }); string los = string.Join(",", poItems.Select(x => x.PO_Item).ToArray());