0

I have this:

Public stringList As New List(Of String)

I need to read the whole list using For each statement, what is the best way to do so using VB.net syntax?

Thanks,

1 Answer 1

3

It sounds like it would be worth you reading the MSDN documentation for the For Each ... Next statement.

For example:

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

If that's not what you're after, please give more details in your question.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.