I am trying to sort threads by priority using SortedList class. I having been running into problems using the SortedList class that I do not run into when using the List class. I have assumed the declaring both is the same and I have been doing the following:
to create a new instance of a SortedList. I have been getting compile errors, however, when I do the following:
readyList = new SortedList<Thread *>;
It works just fine. List is the base class of SortedList.
readyList = new List<Thread *>;
Is there anything wrong with my instance creation using SortedList? How might this be rectified?
Thank you :-)