Sorry I wasn’t more specific before. I’d like to display all the contents of the array without declaring a specific index.
If this isn’t possible with an array, could it be done with a different type of object?
What I’d like to accomplish is a clean, simplistic method for display all the contents without having to use a ForEach loop. I saw something like this in the microsoft documentation on string.format(): Microsoft Documentation
The function you refer to in the documentation won’t solve your issue since your have to specify all the indexes in the composite format string either way. E.g. if your array has three items.
String.Format("Places: {0}, {1}, {2}", places)
If you want to display the whole array, use String.Join() instead: