Can I safely modify -I mean: remove and re-add on a different index position- any item that I iterate over using a For Each loop in VB? We are talking about the VB Microsoft.VisualBasic.Collection class.
And if yes: Is this by design, or an implementational detail, that I am building upon then?
I might be too lazy to search hard enough, but the dox don’t seem to say anything about this.
The
IEnumerator<T>spec says that you can’t:Some collections might not follow this rule.