// 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); }
public bool Equals(PriorityWrapper <Type> other) { return(_priority == other._priority); }