I’m fairly new to C#. How do you work with multidimensional arrays? I am also using WPF.
To be more clear on my problem, here is what I am trying to do:
I have an array that needs to store about 200 ‘records’ and each record has three fields, which the user has entered using a textbox. So I think this is how you would set the array up:
string[,] Properties = new string[500, 3];
I am going to add a new ‘record’ to that array every time the user hits a button. I am clueless as to how you would do that. I am sure that I am going to need to set up some sort of counter.
I also am going to have to update and delete values in the array. Any help would be appreciated. Thank-You.
I’ll sum up what the others have suggested, because you’re new at this.
Create a class for your record (this example is rather simplistic):
Then create a List of those records:
Use
theList.Addto add a new record to the list.