Коллекция C# содержит ожидаемое значение после удаления и добавления элементаC#

Место общения программистов C#
Гость
Коллекция C# содержит ожидаемое значение после удаления и добавления элемента

Сообщение Гость »


I have a collection of s. When I remove, for example, the 2, The collection becomes 1,3. However, when I go to add another item the list becomes Because the sequence is based off the count of items in collection
Is there an easy way to resequence. The example above where I'm showing 1,3 should be resequence to 1,2 and then the next new item will be a 3.


Источник: https://stackoverflow.com/questions/596 ... -an-elemen

Вернуться в «C#»