© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
C
C#
•
3y ago
•
6 replies
luness
❔ System.IndexOutOfRangeException has been thrown"Index was outside the bounds of the array."
Hi I get this message at the line
" Tile temp
= Tiles
[x
, y
]
;
" in my SwapTiles method when im trying to move around the tiles
.
Here
's my code
:
https://pastebin.com/BbVvEC3V
I appreciate any help
Pastebin
using System;using System.Collections.Generic;using System.Drawing;...
Pastebin
.com is the number one paste tool since 2002
. Pastebin is a website where you can store text online for a set period of time
.
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
❔ System.IndexOutOfRangeException: 'Index was outside the bounds of the array.'
C
C# / help
3y ago
❔ System.IndexOutOfRangeException: 'Index was outside the bounds of the array.'
C
C# / help
3y ago
Unhandled exception. System.IndexOutOfRangeException: Index was outside the bounds of the array.
C
C# / help
11mo ago
✅ Index was outside of bounds of the array
C
C# / help
3y ago