KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm wondering how to get the next element in a C# sorted list. SO far I've come up with the following code: SortedList<int, Bla> mList; Bla someElement = mList[key]; Bla next = mList[mList.Keys[mList.IndexOfKey(key) + 1]]; I'm not sure if that's the smartest way to do it ;-)
Tags (comma-separated)
Save Edits
Cancel