© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•11mo ago•
32 replies
Jiraknight3

Unhandled exception. System.IndexOutOfRangeException: Index was outside the bounds of the array.

Good morning,
I’m sorry to disturb you but I have a slight problem with my code. Here, when I try to run my code, I get the following message. However, I have no idea what I need to correct; I tried several things, in doubt, I checked well if I converted everything from "string" to "int", but nothing to do, I still have the same error.
I would very much like to have some help so that we can fix this. Thank you in advance.
image.png
message.txt4.08KB
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ System.IndexOutOfRangeException: 'Index was outside the bounds of the array.'
C#CC# / help
3y ago
❔ System.IndexOutOfRangeException: 'Index was outside the bounds of the array.'
C#CC# / help
3y ago
❔ System.IndexOutOfRangeException has been thrown"Index was outside the bounds of the array."
C#CC# / help
3y ago
✅ Index was outside of bounds of the array
C#CC# / help
3y ago