I would like to create a SortedList with just keys of type Integer, but I'm finding it difficult to set them myself considering the nature of the code.
Is there any way for the list to generate the keys themselves? Like, an autonumber sort of thing? This may be obvious but I've been Googling away and can't find anything!
Thanks in advance.
Why not use a standard List<T>
? They are sorted by an index, which is always incremented.