Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Char[] to string
Message
General information
Forum:
ASP.NET
Category:
Other
Title:
Char[] to string
Miscellaneous
Thread ID:
01039893
Message ID:
01039893
Views:
54
There has to be an easier method to convert a char array to a string. Currently I loop through the char array and build my string on char at the time.
char[] ca = new char[3];
ca[0] = 'a';
ca[1] = 'b';
ca[2] = 'c';

string myString = "";
for (int i = 0; i<ca.Length;i++)
{
  myString = myString + ca[i].ToString();
}
Einar
Semper ubi sub ubi.
Next
Reply
Map
View

Click here to load this message in the networking platform