Console.WriteLine (ArrayList) błędne dane wyjściowe

Próbuję wydrukować zawartość tablicy ArrayList różnych pętli foreach, ale jedyną rzeczą, jaką otrzymuję, jest String + System.Collections.ArrayList.

Na przykład następujący kod:

ArrayList nodeList = new ArrayList();
foreach (EA.Element element in elementsCol)
{
    if ((element.Type == "Class") || (element.Type == "Component") || (element.Type == "Package"))
    {
         nodeList.Add(element);
    }
    Console.WriteLine("The nodes of MDG are:" + nodeList); //stampato a schermo la lista dei nodi nel MDG finale

A wynik jaki otrzymuję to:

The nodes of MDG are:System.Collections.ArrayList

Czy ktoś może mi powiedzieć dlaczego?

questionAnswers(6)

yourAnswerToTheQuestion