I\'m converting an array into a string using String.Join. A small issue I have is that, in the array some index positions will be blank. An example is below:
String.Join
Try this :):
var res = string.Join(",", array.Where(s => !string.IsNullOrEmpty(s)));
This will join only the strings which is not null or "".
null
""