Can a SortedList be accessed with a negative index?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jen

    Can a SortedList be accessed with a negative index?

    I'm looking at some old C# code and I found a line where a SortedList is
    being accessed with a negative index, like so:

    groups[-1];

    My C# skills must be getting rusty. How can that work? What does it do?


Working...