jagged-arrays

Jagged arrays in C#

Hello! Im trying to store to array of ints in a jagged array: while (dr5.Read()) { customer_id[i] = int.Parse(dr5["customer_id"].ToString()); i++; } dr5 is a datareader. I am storing the customer_id in an array, i also want to store scores in another array. I want to have somethin...

jagged arrays <-> multidimensional arrays conversion in ASP.NET

Hi, I would like some help to create the following convertions: A need to convert an 800*600 multidimensional array into a jagged array and then the same method in reverse (jagged array with the same data to the original multidimensional array) Is this possible? and any help about it? ...

Convert Jagged array to several one-dimensional arrays.

Hi all , I wonder if there's a way to convert jagged array , say [3][] into three one-dimensional arrays ? ...

Cast Array to Object Array

I have such method which accept jagged array of Objects. public void MyDataBind(object[][] data) I use it like this GoogleChart1.MyDataBind(new[] { new object[] { "September 1", 1 }, new object[] { "September 2", 10 } }); The question would be how to pass/cast predefined array values to this method? Let's say I have two arrays belo...

How do I get a reference to a single dimension of a Multidemensional Array in C#?

I've come across a problem where I'd like to create an Array table. That is a 2 dimensional array where the number of rows and columns are known at runtime before the table needs to be created. The number of columns is the same for all rows. Once the array is created I'd like to operate on just 1 dimension of that array. Perhaps pass...