How can I delete a list item, knowing only its value. For example,
List <string> names = new List<string>(); names[0]="Ivan"; names[1]="Dima"; From this list, you need to delete an element with the name Dima, without referring to the number in this list, knowing only its name.