How to transfer a string to char array

A

ad

I have a string variable say:

string sMyString="aeiou"

How can I transfer sMyString into a char array?
 
J

Jon Skeet [C# MVP]

ad said:
I have a string variable say:

string sMyString="aeiou"

How can I transfer sMyString into a char array?

Please see the answers you received when you asked the same question
yesterday.
 
R

rossum

I have a string variable say:

string sMyString="aeiou"

How can I transfer sMyString into a char array?

Use sMyString.ToCharArray() as MuZZy/Andre indicated in his answer to
your previous question on this subject.

rossum



The ultimate truth is that there is no ultimate truth
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top