In Java, the java.util.Arrays
class have several static toString(...)
methods that take an array and return its string representation (i.e. the string representation of the contents of the array separated by commas and the whole representation enclosed in square brackets -- e.g. "[1, 2, 3]").
Is there an equivalent method/functionality in .NET?
I am looking a for method that does this without resorting to manually constructing a loop/method to iterate through the array.