示例#1
0
 private int internalCompare(SimpleWorker a, SimpleWorker b)
 {
     if (a.Priority.Value > b.Priority.Value)
     {
         return 1;
     }
     else if (a.Priority.Value < b.Priority.Value)
     {
         return -1;
     }
     else
     {
         return 0;
     }
 }
示例#2
0
 public void AddWorker(SimpleWorker worker)
 {
     _workers.Add(worker);
 }