Convert Char[] to String in C#
//create a character array
char[] charArr = new char[1024];
//create an empty string
string str = “”;
//create new string passing charArr in to the constructor
str = new string(charArr);
//create a character array
char[] charArr = new char[1024];
//create an empty string
string str = “”;
//create new string passing charArr in to the constructor
str = new string(charArr);
You must be logged in to post a comment.