Skip to content

Memory, MemoryPool and IMemoryOwner in C#: net11.0 and output fixes - #2419

Merged
vladimir-pecanac-main merged 2 commits into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/109970-csharp-using-memory
Nov 29, 2026
Merged

vladimir-pecanac-main merged 2 commits into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/109970-csharp-using-memory

Conversation

@vladimir-pecanac-main

Copy link
Copy Markdown
Collaborator

Retargets the MemoryInCSharp sample to net11.0 with current test packages. Slice(6, 9) now prints Code Maze, UseMemoryOwner slices the rented block to the 10 elements it asked for and prints the real block length, the stack example is renamed with truthful labels, the two methods the article prints but the sample lacked are added, Program.cs uses top-level statements, and each test asserts the value that would have caught its bug.

Retarget App and Tests to net11.0 and update test packages. Slice(6, 9) now prints Code Maze, UseMemoryOwner slices the rented block to the 10 elements it asked for and prints the real block length, the stack example is renamed StackDataNeedsAnArray with truthful labels, the two methods the article prints but the sample lacked are added, Program.cs uses top-level statements, and each test now asserts the value that would have caught its bug.
@vladimir-pecanac-main
vladimir-pecanac-main merged commit 7cebf92 into CodeMazeBlog:main Nov 29, 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