I usually have methods returning IList. I need to log the result coming back in this list.
Is there a better way than looping on the items inside the list and printing them one by one like this?
foreach(string productName in productsNames)
{
prodsNames.Append(productName + " ");
}
Logger.Debug("Loading data for Producers: " + prodsNames);
is there some way of making this easier?