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());

 

Leave a Reply

Your email address will not be published. Required fields are marked *