I need to do currentKey+1. So i would like to find the index of the key value and get the next key (or first if at end). How do i find the current index of the key?
I am
Without using a different collection it could be done like this. Though I'm not sure how efficient this is.
classIndex = classes.ToList().IndexOf(new KeyValuePair(newKey, classes[newKey]));