How to read a list of strings

I have it:

Public stringList As New List (Of String)

I need to read the entire list using for each statement, what is the best way to do this with VB.net syntax?

Thank,

0


source to share


1 answer


It sounds like you should read the MSDN documentation for the "For each ... Next" instruction .

For example:



For Each x As String In stringList
    Console.WriteLine(x)
Next

      

If this is not what you want, please include more details in your question.

+3


source







All Articles