-2

How would I go about looping through an array in an array. Something that looks a bit like this:

int[,]

This is the thing I want to achieve:

int[,] obj

for(int i = 0; i < obj.Length; i++) {}

Thanks!

1

1 Answer 1

0

Just found the answer! All you need is a foreach block. All you have to do is: foreach (var item in itemArray) { }

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.