Skip to content

Update DictionaryGetValueByIndex to .NET 11 - #2441

Open
vladimir-pecanac-main wants to merge 1 commit into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/60982-csharp-get-item-by-index-from-dictionary
Open

vladimir-pecanac-main wants to merge 1 commit into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/60982-csharp-get-item-by-index-from-dictionary

Conversation

@vladimir-pecanac-main

Copy link
Copy Markdown
Collaborator

Retargets both projects in collections-dictionary/DictionaryGetValueByIndex to net11.0 and moves the tests to MSTest 4.5.3, Microsoft.NET.Test.Sdk 18.12.0 and coverlet.collector 10.1.1. Program.cs now uses top-level statements, drops the unused using and the closing Console.ReadLine, matches the indexer output string to the article, and adds the ElementAtOrDefault, ToArray snapshot, Remove and Add, and OrderedDictionary examples the updated article prints. Five new tests cover out-of-range access, a missing key and OrderedDictionary index behaviour, for seven in total.

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