In C #, I have an array of ints that contain only digits, I want to convert this array to a string .
Array's example:
int [] arr = {0,1,2,3,0,1};
How can I convert it to formatted string: at.net 3.5 Usage: Use of at.net 4.0 or above: (see Jane Rimunda's answer) "012301"?
string .join (" ", New list & lt; int & gt; (array). ConvertAll (i = & gt; i.ToString ()) toArray ()).
string result = string .join ("", Array);
No comments:
Post a Comment