views:

61

answers:

1

How would I make use of a List(of String) in a structure in vb.net. for example

Structure examplestrut
    Public exampleslist As List(Of String)
End Structure

How would I call exampleslist.add("example 1")?

+3  A: 

Like this:

Dim myStruct as ExampleStruct
myStruct.exampleList = new List(Of String)()
myStruct.exampleList.Add("Hi there!")
SLaks
simple enough...thanks!