btb-class |

# PriorityQueue(TItem) Class

A queue returning item with highest priority first while removing the item from collection. This implementation differs from System.Collections.SortedList because allows adding items with non-unique priorities.

For a list of all members of this type, see PriorityQueue(TItem) Members .

System.Object
PriorityQueue(TItem)

public class PriorityQueue<TItem> : IEnumerable<T>, IEnumerable
where TItem : IComparable

#### Generic template parameters

TItem
  item type

#### Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

#### Requirements

Namespace: ComponentOwl.BetterThumbnailBrowser.Collections

Assembly: BetterThumbnailBrowser (in BetterThumbnailBrowser.dll)

#### See Also

PriorityQueue(TItem) Members | ComponentOwl.BetterThumbnailBrowser.Collections Namespace