Does Array.ToString() provide a useful output?

Option 1

If you have an array of strings, then you can use String.Join:

string[] values = ...;

string concatenated = string.Join(",", values);

Option 2

If you’re dealing with an array of any other type and you’re using .NET 3.5 or above, you can use LINQ:

string concatenated = string.Join(",",
                          values.Select(x => x.ToString()).ToArray());

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)