Click or drag to resize

SortedQueueTKey, TValue Class

Creates a SortedQueueTKey, TValue. This class allows adding items in random order, but dequeuing based upon the sorting of
Inheritance Hierarchy
SystemObject
  GSF.CollectionsSortedQueueTKey, TValue

Namespace: GSF.Collections
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.207-beta+1781b796b2aa7a54013a031eb432fe4ccee31867
Syntax
public class SortedQueue<TKey, TValue>
View Source

Type Parameters

TKey
TValue

The SortedQueueTKey, TValue type exposes the following members.

Constructors
 NameDescription
Public methodSortedQueueTKey, TValue Creates a SortedQueueTKey, TValue
Top
Properties
 NameDescription
Public propertyCount Gets the number of items in the queue;
Public propertyHead Gets the first item in the queue. Throws an exception if it does not exist.
Public propertyItem An indexer
Top
Methods
 NameDescription
Public methodDequeue Removes the first item in the list.
Public methodEnqueue Queues an item in the list.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodTryGetValue Attempts to get the provided item.
Top
Extension Methods
 NameDescription
Public Extension MethodGetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodGetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
Remarks
Under the surface, it's using a SortedListTKey, TValue and may not be extremely fast for large item lists.
See Also