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.
The String.Join method.
[You will need to add the square brackets yourself]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With