Open Neme12 opened 1 year ago
Tagging subscribers to this area: @dotnet/area-system-memory See info in area-owners.md if you want to be subscribed.
Author: | Neme12 |
---|---|
Assignees: | - |
Labels: | `api-suggestion`, `area-System.Memory` |
Milestone: | - |
Oh, there is an existing issue for the second part already: #84838. I'm removing that from this proposal.
Background and motivation
MemoryExtensions
has really usefulSequenceEqual
andSequenceCompareTo
methods. ForIEnumerable
, there is aSequenceEqual
method as well, but sadly noSequenceCompareTo
. So this is what I'm proposing.Also, I noticed that theEDIT: There is an existing issue for this: #84838SequenceCompareTo
methods onMemoryExtensions
have no overloads that take a comparer, while theSequenceEqual
methods do. I'm adding this to the proposal as well just because this feels like an omission.API Proposal
API Usage
Alternative Designs
No response
Risks
No response