.net - String.Join method that ignores empty strings? - Stack Overflow

PHOTO EMBED

Mon Jul 11 2022 02:46:09 GMT+0000 (UTC)

Saved by @p83arch #cs

String.Join(",", myArray.Where(s => !string.IsNullOrEmpty(s)))
content_copyCOPY

https://stackoverflow.com/questions/16325995/string-join-method-that-ignores-empty-strings