Is there any way to retrieve previous element or next element while iterating lists in VB.NET? Something like:
For Each item In MyList
Dim current_item = item
Dim previous_item = Prev(item)
Dim next_item = Next(item)
Next
Is there any built-in function which do what imaginary functions "Prev()/Next()" do here? Please answer if there is already an available function, otherwise I know how to write them by myself.
Thanks in advance