Since your sample code is C# ,
string testString = new string[jobs.Count];
This is a constructor for creating a string array.
While with the example of VB.Net
Dim testString As String = New String(jobs.Count - 1) {}
You are referencing a new String object with the length of the string declared in parentheses.
If you want to create an array from String in VB.Net, it should look like this:
Dim testString (jobs.Count) As String
see support links below: VB.Net C #
lexeroy
source share