I have these data :
4 pippo pluto paperino
10 marco paolo roberto
2 hello cruel world
and I’d like to store these data into a multi-type matrix myMatrix. (First field is an integer, the rest are strings).
So, if I type myMatrix[1][2] I must get paolo. How can I do it on C#?
The best way is to create a class that represent your data, with 4 fields (integer, string, string, string).
Then simply use a
List<MyClass>to store your data.To get Paolo you’ll need to use
List[1].Param2(also name your parameters with meaningful names).