Skip to content

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

Open
vladimir-pecanac-main wants to merge 1 commit into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/84809-csharp-how-to-delete-elements-from-an-array
Open

vladimir-pecanac-main wants to merge 1 commit 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.

…on expression, ref resize and first-element examples, benchmark calls the sample methods
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