List Class

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Dear All,

I need to create a dynamic array (linked list) of a data structure. In the
old days I would have used a C++ list class, or an MFC COblist class, and
used it to manage the structure array. I'm using Visual Studio 2003 (haven't
forked out the cash for 2005 yet). What's the equivalent class in C#? I've
tried the ArrayList - but it just doesn't seem to cut it.
Any ideas really appreciated. I'm sure it's relatively simple.
Thanks
Greg
 
You can write your own by inheriting from Collectionbase and creating
your own typed dynamic array.
The namespace is System.Collections
There's also the option of inheriting from other collection types such
as HashTable.
 
Try the following:
List<T> generic methods (from IDESIGN.NET - Juval Lowy's group).
http://www.idesign.net/idesign/DesktopDefault.aspx?tabindex=5&tabid=11

Wintellect has 'Power Collections' -
http://www.wintellect.com/Resources.aspx

There was a 6-part series on Data Structures by Scott Mitchell at the MSDN -
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnvs05/html/datastructures20_1.asp

Jesse Liberty has a few good articles on C# iterators & collections at
OReilly's
http://www.ondotnet.com/pub/a/dotnet/2004/06/07/liberty.html

Hope it helps.

SBC
weblogs.asp.net/sbchatterjee
 
Dear All,

I need to create a dynamic array (linked list) of a data structure. In the
old days I would have used a C++ list class, or an MFC COblist class, and
used it to manage the structure array. I'm using Visual Studio 2003 (haven't
forked out the cash for 2005 yet). What's the equivalent class in C#? I've
tried the ArrayList - but it just doesn't seem to cut it.
Any ideas really appreciated. I'm sure it's relatively simple.
Thanks
Greg

Do a search for Hashtable in the help. Allows you to store and search for
objects using string keys. However you cannot use duplicate keys.

Good luck with your project,

Otis Mukinfus
http://www.arltex.com
http://www.tomchilders.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top