PolySharp provides generated, source-only polyfills for C# language features, to easily use all runtime-agnostic features downlevel. Add a reference, set your C# version to latest and have fun! 🚀
Polyfilling System.Collections.Generic.PriorityQueue<TElement, TPriority> helps developers using the same priority queue API in older tfms without the need for preprocessor directives.
Description
Add a polyfill for the
System.Collections.Generic.PriorityQueue<TElement, TPriority>
added in .NET 6.0.Rationale
Polyfilling
System.Collections.Generic.PriorityQueue<TElement, TPriority>
helps developers using the same priority queue API in older tfms without the need for preprocessor directives.Proposed API
According to the .NET 7.0 implementation.
Drawbacks
Another polyfill to maintain.
Alternatives
Not supporting
System.Collections.Generic.PriorityQueue<TElement, TPriority>