I'm working in C# and with a sorted List<T>
of structs. I'm trying to iterate through the List
and for each iteration I'd like to access the next member of the list. Is there a way to do this?
Pseudocode example:
foreach (Member member in List)
{
Compare(member, member.next);
}