hey...i want to ask about how to convert string array to integer array. hope someone can help me.
thanks.
Kath_Fish
0
Junior Poster
Recommended Answers
Jump to Postint[] StringToInt(String[] input) { int[] output = new int[input.Length]; for (int i = 0; i < input.Length; i++) { output[i] = Int32.Parse(input[i]); } return output; }
There is no error checking in this code. Passing a null array or anything in the string array that isn't an …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.