I want to create a two-dimensional array without knowing the size of the first dimension.
For example, I have an unknown number of rows when I create an array. Each line represents an account. 4 columns for each row: ID, name, user, password
I tried using jagged array, but this is not possible:
int[][] jaggedArray = new int[][3];
I also searched for ArrayList , an implementation with clans and a bit about Generics.
I am looking for a solution that makes it easy to manipulate data like:
- add to list, select, enter items
- using items in database queries
- use as parameters in other functions
Since I'm new to .NET (C #), please provide me code solutions, not general (look for) solutions.
arraylist arrays c # dynamic
user848568
source share