Skip to content

IndexOutOfRangeException sample: .NET 10, MSTest 4.5.2 and index-from-end examples - #2363

Merged
vladimir-pecanac-main merged 2 commits into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/73295-what-is-indexoutofrangeexception-in-c
Nov 13, 2026
Merged

vladimir-pecanac-main merged 2 commits into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/73295-what-is-indexoutofrangeexception-in-c

Conversation

@vladimir-pecanac-main

Copy link
Copy Markdown
Collaborator

Moves the IndexOutOfRangeException sample to net10.0 and MSTest 4.5.2 (Assert.ThrowsException becomes Assert.ThrowsExactly), removes the unused System.Data.SqlClient reference, aligns the List example's console strings with the article, switches to top-level statements and file-scoped namespaces, and adds IndexFromEndMethod and RangeMethod (hat operator, ranges, ElementAtOrDefault) with two new tests, for eight in total.

…d and range examples

Retarget both projects to net10.0, drop the unused System.Data.SqlClient reference, move tests to MSTest 4.5.2 (Assert.ThrowsExactly), align the List example strings with the article, convert to top-level statements and file-scoped namespaces, and add IndexFromEndMethod and RangeMethod with tests.
@vladimir-pecanac-main
vladimir-pecanac-main merged commit 8352ee9 into CodeMazeBlog:main Nov 13, 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