Skip to content

Stack in C#: update sample to .NET 10 - #2358

Merged
vladimir-pecanac-main merged 3 commits into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/69281-stack-csharp
Nov 11, 2026
Merged

vladimir-pecanac-main merged 3 commits into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/69281-stack-csharp

Conversation

@vladimir-pecanac-main

Copy link
Copy Markdown
Collaborator

Retargets both projects in collections-csharp/StackInCSharp to net10.0 and moves the test project to xunit 2.9.3, xunit.runner.visualstudio 4.0.1, Microsoft.NET.Test.Sdk 18.11.0 and coverlet.collector 10.1.0. The helpers' TryPeek/TryPop out parameters and the non-generic Peek/Pop return types are annotated so the build has no nullable warnings, Program.cs drops a stray line break from a page title and prints three new demos (stack built from a list, checking for an empty stack and draining it with TryPop, and a parallel push into ConcurrentStack), and three tests cover TryPop and Peek on an empty stack and the order of a stack built from a list (16 tests in all).

@vladimir-pecanac-main
vladimir-pecanac-main merged commit 2c10a70 into CodeMazeBlog:main Nov 11, 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