Here's a shorter way of Removing items in a FOR EACH
For Each item As String In New List(Of String)(shortlist)
If item.Contains("RemoveMe") Then
shortlist.Remove(item)
End If
Next
Here you are creating a new list with the data from shortlist and cycling through that...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.