Answers for "how to check if something is in two dimensional array csharp"

C#
1

c# check if 2d array position exists

// make sure we're not referencing cells out of bounds of the array
if (tileX < arr.GetLength(0) && tileY < arr.GetLength(1))
{
    // logic
}
Posted by: Guest on June-10-2021

Code answers related to "how to check if something is in two dimensional array csharp"

C# Answers by Framework

Browse Popular Code Answers by Language