What is the VB.NET syntax for declaring the size of an array of objects at runtime?
To get an idea of what I mean, here is the code so far:
Private PipeServerThread As Thread()
Public Sub StartPipeServer(NumberOfThreads As Integer)
' ??? equivalent of C#
' ??? PipeServerThread = new Thread[numberOfThreads];
' ??? goes here
For i = 0 To NumberOfThreads - 1
PipeServerThread(i) = New Thread(New ThreadStart(AddressOf ListeningThread))
PipeServerThread(i).Start()
Next i
End Sub
I've tried several things but just end up conflating it with object creation syntax.