How to work with a priority queue in .NET 6
Take advantage of the PriorityQueue class in .NET 6 to create queues that work based on priority values you assign to the elements.
Visual Studio Console Application Assuming Visual Studio Queue Enqueue Queue Trydequeue System Collections Generic
Source: infoworld.com