Hello,
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:Code:readyList = new SortedList<Thread *>;
It works just fine. List is the base class of SortedList.Code:readyList = new List<Thread *>;
Is there anything wrong with my instance creation using SortedList? How might this be rectified?
Thank you :-)



LinkBack URL
About LinkBacks


