Quantcast
Channel: How do you display a string array in a text box - Stack Overflow
Viewing all articles
Browse latest Browse all 4

Answer by Nolonar for How do you display a string array in a text box

$
0
0

You will need to convert your string[]s into strings. You can do this easily with the string.Join() method:

string separator = ", ";string[] mag = new string[] { "hello", "world" };textBoxmag.Text = string.Join(separator, mag);// textBoxmag.Text == "hello, world";

Viewing all articles
Browse latest Browse all 4

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>