Is there any (smart) way to hide the separator if my list only contains one item?
For example
<code>One or more items were not found based on their id: {string.Join(",", notFoundIdsList)}.
</code>
<code>One or more items were not found based on their id: {string.Join(",", notFoundIdsList)}.
</code>
One or more items were not found based on their id: {string.Join(",", notFoundIdsList)}.
Should not show the comma at the end if there is only one item in the notFoundIdsList.