Show / Hide Table of Contents

Class PriorityQueue<TValue>

Inheritance
System.Object
PriorityQueue<TValue>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Collections.Generic
Assembly: OpenSilver.dll
Syntax
public class PriorityQueue<TValue>
Type Parameters
Name Description
TValue

Constructors

| Improve this Doc View Source

PriorityQueue(Int32)

Declaration
public PriorityQueue(int maxPriority)
Parameters
Type Name Description
System.Int32 maxPriority

Properties

| Improve this Doc View Source

Count

Declaration
public int Count { get; }
Property Value
Type Description
System.Int32

Methods

| Improve this Doc View Source

Dequeue()

Declaration
public TValue Dequeue()
Returns
Type Description
TValue
| Improve this Doc View Source

Enqueue(Int32, TValue)

Declaration
public void Enqueue(int priority, TValue value)
Parameters
Type Name Description
System.Int32 priority
TValue value
| Improve this Doc View Source

Peek()

Declaration
public TValue Peek()
Returns
Type Description
TValue
| Improve this Doc View Source

TryDequeue(out TValue)

Declaration
public bool TryDequeue(out TValue value)
Parameters
Type Name Description
TValue value
Returns
Type Description
System.Boolean
| Improve this Doc View Source

TryPeek(out TValue)

Declaration
public bool TryPeek(out TValue value)
Parameters
Type Name Description
TValue value
Returns
Type Description
System.Boolean
  • Improve this Doc
  • View Source