This may seem an easy question, but is there a best way in terms of the method or syntax for displaying items stored in an Enumerable object of type string in a TextBox? (and other controls)
I have the following code:
if (CategoryTypes.Count() >= 1)
{
foreach (var category in CategoryTypes)
{
txtCategories.Text += category + ", ";
}
}
Is there a better way of doing this?
1 Answer