Wednesday, 3 February 2010

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()));
}

No comments:

Post a Comment