I recently wrote a VB.NET application using VS2005. I needed to be able
to build linked lists in memory of items that were represented by a
group of variables. For example,
Friend Structure foo
Dim var1 As String
Dim var2 As Integer
Dim var3 As Boolean
End Structure
I needed several structures, each with a different mix of number of
members and the datatypes. Now, these structures could have been
implemented as classes. But I do not know how multiple instances of a
class can be linked together so I can process them in a standard For
Each/Next loop.
I see one guideline of whether to use a Class or a Structure is if the
Structure is less or equal to 16 bytes. Several of these structures
will be larger than that, so I am open to converting the code to use
classes instead of structures if someone can give me some pointers on
how to link instances of a class together.
TIA,