示例#1
0
 // Method that will be called when the thread is started.
 internal static void ThreadMethod()
 {
     SortAndSearch driver = new SortAndSearch (_listSize, _number, _sortType);
     driver.SortingMethod();
 }
示例#2
0
 // Constructor that takes the size of the list, the number to
 // search for, and the type of sorting to perform.
 internal ThreadClass(int ListSize, int Number, SortAndSearch.SortType SortType)
 {
     _listSize = ListSize;
     _number = Number;
     _sortType = SortType;
 }