I am new to C# programming, I migrated from python. I want to append two or more array (exact number is not known , depends on db entry) into a single array like the list.append method in python does. Here the code example of what I want to do
int[] a = {1,2,3};
int[] b = {4,5,6};
int[] c = {7,8,9};
int[] d;
I don't want to add all the arrays at a time. I need somewhat like this
// I know this not correct
d += a;
d += b;
d += c;
And this is the final result I want
d = {{1,2,3},{4,5,6},{7,8,9}};
it would be too easy for you guys but then I am just starting with c#.
d = {{1,2,3},{4,5,6},{7,8,9}};is notint[]dbe a jagged array, i.e. array of array{{1,2,3},{4,5,6},{7,8,9}}or just a simple 1D one:{1, 2, 3, 4, 5, 6, 7, 8, 9}?code{{1,2,3},{4,5,6},{7,8,9}}