I\'ve got :
string[] strArray = new string[3] { \"1\", \"2\", \"12\" };
And I want something like this
int[] intArray = Con
Something like this, but you want to keep a bit of error checking ( my if is really lame, just as example ):
static private int[] toIntArray(string[] strArray)
{
int[] intArray = new int[strArray.Length];
for (int index = 0; index < strArray.Length; index++)
{
intArray[index] = Int32.Parse(strArray[index]);
}
return intArray;
}
And use it like this:
string[] strArray = new string[3] { "1", "2", "12" };
int[] interi = toIntArray(strArray);