Ejemplo n.º 1
0
 // Compare by priority so that higher priorities precede lower ones
 public int CompareTo(PriorityWrapper <Type> other)
 {
     if (other == this)
     {
         return(0);
     }
     return(_priority - other._priority);
 }
Ejemplo n.º 2
0
 public bool Equals(PriorityWrapper <Type> other)
 {
     return(_priority == other._priority);
 }