C#. How to join in string array of int




We have array of int and want to write it to a variable or to show on display. It's not so easy to do in one string as you can think at first. Below I wrote one of  ways to do it.

 

Int64[] incomings = new Int64[24];
...
string result = string.Join("<br />", incomings.Select(x => x.ToString()).ToArray());

 




No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment





MarkiMarta.com. Notes of web-specialist
Since 2009
18+