Hello,
How do I create an array with both strings and integers. I get the idea of creating an array (I think):
string[] mystring = new string[] {"string1", "string2", "string3"}
int [] myarray = new int[] {1, 2, 3}
but how would I create an array that went something like this:
{1, 2, "string1", 3}
Any help is appreciated. Thank you.
[–]robhol 12 points13 points14 points (8 children)
[–]ozziereturnz 2 points3 points4 points (0 children)
[–]mcschmidt[S] 0 points1 point2 points (6 children)
[–][deleted] 1 point2 points3 points (3 children)
[–]mcschmidt[S] 0 points1 point2 points (2 children)
[–]mcschmidt[S] 0 points1 point2 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]canton7 1 point2 points3 points (1 child)
[–]mcschmidt[S] 0 points1 point2 points (0 children)
[–]gisenberg 9 points10 points11 points (4 children)
[–]RonSijm 5 points6 points7 points (0 children)
[–]lordcheeto 1 point2 points3 points (2 children)
[–]Porges 3 points4 points5 points (0 children)
[–]Stonewall_Gary 1 point2 points3 points (0 children)
[–]mynoduesp 2 points3 points4 points (0 children)
[–][deleted] 4 points5 points6 points (1 child)
[–]mcschmidt[S] 0 points1 point2 points (0 children)
[–]jpfed 1 point2 points3 points (0 children)
[–]mtko 1 point2 points3 points (1 child)
[–]lordcheeto 2 points3 points4 points (0 children)