A good friend of mine emailed me wanting to know more about .NET arrays ... I ended up writing so much in the email I thought it might help someone else too.
allright ... firstly, let me tell you how I work in regards to documentation. The .NET documentation is great, but a bit unwieldy for my taste. I prefer the class browser. You can get this in one of three places. either online at:
http://www.aspng.com/quickstart/aspplus/samples/classbrowser/cs/classbrowser.aspx
or, the same application comes with web matrix or visual studio. I love web matrix for the class browser, and the built in web server. The app works just like the web version, except with a whole bunch more information, and it has links to the local sdk docs, AND msdn docs. very useful
ok, now that that's taken care of. there's a couple of different "types" of arrays in the .net framework. The first one is the type you're familiar with ... here's a pretty good article on em. http://msdn.microsoft.com/msdnmag/issues/02/02/NET/NET0202.asp
You can have that type of array from any kind of object so if you have a custom class called boogaloo, you can say
boogaloo[] boo = new boogaloo[100];
boo[0] = new boogaloo(param);
boo[1] = new boogaloo(param);
same goes for strings, Int32's and such.
The second kind is much more powerful and can be found in the System.Collections namespace
I wrote up a real quick 'n dirty example of how to use the two main ones that I use, ArrayList, and Hashtable
http://www.codecube.net/demos/dotnet/arraysgalore.aspx
Remember it would be wise of you to have a look through the class browser to see what methods and properties each of these objects has so you can familiarize yourself with it.
anyways, hope that helps,
Joel