Skip to content

Remove elements from an array: net11.0 update - #2388

Merged
vladimir-pecanac-main merged 2 commits into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/84809-csharp-how-to-delete-elements-from-an-array
Nov 24, 2026
Merged

vladimir-pecanac-main merged 2 commits into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/84809-csharp-how-to-delete-elements-from-an-array

Conversation

@vladimir-pecanac-main

Copy link
Copy Markdown
Collaborator

Moves the DeleteElementsFromArray sample to net11.0 with BenchmarkDotNet 0.15.8 (in-process, which this version needs on .NET 11), MSTest 4.5.3, Microsoft.NET.Test.Sdk 18.12.0 and coverlet.collector 10.1.0. Adds a collection expression method, a first-element removal with a range, and a loop-and-resize version that takes the array by ref so it no longer leaves the caller's array shifted. The benchmark now calls the sample methods on a seeded array instead of copies of their bodies, and its runner passes args through. Test class renamed, file-scoped namespaces, 25 tests.

@vladimir-pecanac-main
vladimir-pecanac-main merged commit 2f0261b into CodeMazeBlog:main Nov 24, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant