I want to create a 2-dimensional array, without knowing the size of the first dimension.
For example I have an unknown number of rows, when I create an array. Every row represent an account. Exit 4 columns for every row: ID,name,user,password
I tried with jagged array but it is not possible to have:
int[][] jaggedArray = new int[][3];
Also I looked for ArrayList, implementation with clases and a little about Generics.
I'm searching for a solution that can permit easy manipulation of data as:
- add to list,select,input elements
- using elements in database queries
- using as parameters in other functions
Because I'm a newbie in .NET (C#) please provide me with code solutions, instead of generic(look for) solutions