Possible Duplicate:
Split string, convert ToList<int>() in one line…
i have a string that looks like this.
string s = "1,6,4,3,5,7,4";
and i want to convert this into an array of integers.
what is the best and fastest way of doing this in C#?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
use split method.
Hmm, don’t know if it is fastest way, however it is the simplest way 🙂