TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Peter Price
NA
3
0
Displaying character arrays
Apr 16 2009 12:52 AM
How do I display a character array? I copy a string to a character array using the 'CopyTo' method, but when I attempt to display the character array in any of the following ways:
Console.WriteLine("2nd char_array value is {0}", char_array);
Console.WriteLine("3rd char_array value is " + Convert.ToString(char_array));
string newstring;
newstring = Convert.ToString(char_array);
Console.WriteLine("4th char_array value is " + newstring);
I get the results:
2nd char_array value is System.Char[]
3rd char_array value is System.Char[]
4th char_array value is System.Char[]
Instead of the value in char_array.
Thanks for your help.
Peter Price
Reply
Answers (
1
)
split an integer
how to download the files from the website