Generation

generate functionMon, 16 Jan 2023

Удалить из списка var listes = project.Lists["Listzapros"] дубли

string s = ""; var listes = project.Lists["Listzapros"]; foreach (SPListItem item in listes.Items) { s += item.Title + " "; } string[] words = s.Split(' '); string[] newWords = words.Distinct().ToArray(); foreach (string word in newWords) { SPListItem newItem = listes.Items.Add(); newItem["Номер запроса"] = word; newItem.Update(); }

Questions about programming?Chat with your personal AI assistant