string - Stick delineated between array elegantly -


At any time, I need to string from the list that has some kind of depiction, I have something like this < / P>

  string output = ""; For (int i = 0; i & lt; array.label; i ++) output + = array [i] + ","; Return output;  

But it always adds a comma to the end where I do not want this. To avoid this I have to do

  string output = ""; For (int i = 0; i  

Is there any more great way to achieve this goal?

is an option:

  string output = array [0] ; For (int i = 1; i & lt; array.label; i ++) output + = "," + array [i]; Return output;  

Comments

Popular posts from this blog

c# - SignalR: "Protocol error: Unknown transport." when navigating to hub -

android - how to get distance of 2 beacons and make a condtion base on that distance -

c# - WPF Expander overlay used in ItemsControl -