Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recreating a multi-dimensional array

Status
Not open for further replies.

StevenK

Programmer
Jan 5, 2001
1,294
GB
I'm very new to C# programming and need a pointer with something.
I'm making use of a multi-dimensional array of the form :
string[x, y] MyNewMultiDArray = new string[x, y];
Ideally this array needs to be used throughout the class so I need to have it declared at the top of the class file.
Furthermore this array will need to change in size according ot a user selection. For this I will need to have to destroy the array and then recreate it with the appropriate dimensions.
How do I do this ?
Any help would be appreciated.
Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top