M
M
Michael Vasyukov2017-10-04 19:21:46
Arrays
Michael Vasyukov, 2017-10-04 19:21:46

How to add values ​​to a 2D array?

Good evening! Can you please tell me how to add values ​​to a two-dimensional array?
There is an array: int[,] array = { {1, 2, 3}, {4, 5, 6} };
You need to do something like this: array += {7, 8, 9}; To become array = {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}};
How can you do that?
PS Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sumor, 2017-10-04
@programmer_developer

Arrays, they are arrays because you can't add values ​​to them.
Use an array list: List and add arrays via Add.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question