>>Yes, because everything is an object in c#.
>>In fact, the following code create an array of 2 arrays
>
>object[,] multitype = {{4, 5, 6, 1}, {"Claudio","Michel","Carlos","John"}};
>
>
>Ah, got it... this is the "jagged array". I found some literature on this, but althought them mentioned about all the object stuff, all the samples I found create those arrays like this:
>
>
>int[,] multitype = {{4, 5, 6, 1}, {3,4,5,4}};
>
>
>this way, just integers, integers and more integers. :)
>
>Tks a lot, Gérald!
I see exactly the same literature but I have try it and it work.
Since this is not documented, I see my code as a workaround.
My suggestion would be to use a distinct array for each type for production code...
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca