C# Converting array or List to string

public void Test()
{
  List<string> list = new List<string>();
  dogs.Add("One");
  dogs.Add("Two");
  dogs.Add("Three");
  Console.WriteLine(string.Join(",", list.ToArray()));
}

Comments

Popular posts from this blog

Parse XML to dynamic object in C#

C# Crop white space from around the image