.net - Most accepted method of turning a table into a string -
i have table of chars. acceptable method of turning array string.
ex:
array: ['a']['b']['c']
-> abc
thanks, thoughts appreciated!
you can either use string.join() or if character array, pass parameter new string constructor below.
// a. 15 character array. char[] c = new char[15]; c[0] = 'o'; c[1] = 'n'; c[2] = 'l'; c[3] = 'y'; c[4] = ' '; c[5] = 't'; c[6] = 'h'; c[7] = 'e'; c[8] = ' '; c[9] = 'l'; c[10] = 'o'; c[11] = 'n'; c[12] = 'e'; c[13] = 'l'; c[14] = 'y'; // b. 15 character string. string s = new string(c);
Comments
Post a Comment