How to add different datatypes to arrays/arraylists...?

  • Thread starter Thread starter madsen
  • Start date Start date
M

madsen

Hi,
I am a developper who needs to return a collection of different
datatypes. Have considered using an array containing arraylists. Is it
posible? or is there a better way? Would like to use some kind of 2
dim arraylist, like Vectors in JAVA...

Carsten
 
I'm still brand new to .NET, but fabricated ADO Recordsets worked great for
this in VB. I presume ADO.NET Recordsets are at least as useful for this
job in C#.
 
madsen said:
I am a developper who needs to return a collection of different
datatypes. Have considered using an array containing arraylists. Is it
posible? or is there a better way? Would like to use some kind of 2
dim arraylist, like Vectors in JAVA...

An ArrayList in .NET is almost exactly like a Vector in Java. If you
could give some sample code in Java, I'd be happy to translate that to
C# for you.
 
Arrary list can handle different datatypes (it stores objects)
tried using maps ? (name value pairs).. that could help you
 
Back
Top