Sergio0694/PolySharp

Add `System.Collections.Generic.PriorityQueue<TElement, TPriority>` polyfill

latonz opened this issue · 0 comments

latonz commented

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>