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
Post a Comment