Skip to content

Instantly share code, notes, and snippets.

@hatelove
Created October 9, 2012 11:23
Show Gist options
  • Save hatelove/3858072 to your computer and use it in GitHub Desktop.
Save hatelove/3858072 to your computer and use it in GitHub Desktop.
var myCollection = this.GetMyData();
var myResult = myCollection.Select(x=> x+ ",");
var result= new StringBuilder();
foreach(var item in myResult)
{
result.Append(item) ;
}
result.Replace(",", "",result.Length-1, 1);
return result.ToString();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment