KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm trying to figure out what I'm doing wrong here, but I can't seem to. I have this method that takes in a string and reverses it. However, when I print out the reversed string from the caller method, I just get "System.Char []" instead of the actual reversed string. static string reverseString(string toReverse) { char[] reversedString = toReverse.ToCharArray(); Array.Reverse(reversedString); return reversedString.ToString(); }
Tags (comma-separated)
Save Edits
Cancel