How convert char array to string?

T

Tyler Dixon

Bill said:
What is the easiest way to convert a char array to string?

//honestly, i haven't checked this, but something's seriously wrong if
//it doesn't work
string s = new string(charArray);
 
J

Jay B. Harlow [MVP - Outlook]

Bill,
The String constructor that accepts a char array.

Hope this helps
Jay
 

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