Monday, May 24, 2010

Char array to string???? c#?

is there a method that does this?





'c','a','t'


i want to be be cat

Char array to string???? c#?
char[] cArray = { 'c', 'a', 't' };


string sCat = new string(cArray);
Reply:try this:





string cat=new string(yourCharArrayHere);


No comments:

Post a Comment