string sequence = "12345";
int[] ziffern = new int[sequence.Count()];
for (int i = 0; i < sequence.Count(); i++)
{
ziffern[i] = Convert.ToInt32(sequence.ElementAt(i));
}
It does not work like that. How can I access every single number?
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.
ElementAtwill return achar.When you convert a
charto anInt32, you will get the ASCII code of the character.Try this: