Visual C# Developer Center > Visual C# Forums > Visual C# General > Cannot Show List<T> Collection in MessageBox.
Ask a questionAsk a question
 

AnswerCannot Show List<T> Collection in MessageBox.

  • Tuesday, November 03, 2009 3:33 PMEvren Betimen Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Has Code

     

            List<string> lst = new List<string>();
    ...
                    foreach (Match m in Regex.Matches(myString, DescriptionTag))
                    {
                        MatchCollection mc = Regex.Matches(myString, DescriptionTag);
                        for (int i = lst.Count; i < mc.Count; i++)
                        {
                            lst.Add(mc[i].Groups[1].ToString());
                        }
    
                    }
    





    How can i show all elements of "lst" on MessageBox.Show(); method?

    Thanks in advance,
    Greetings

     

     

     

Answers

All Replies