请看以下代码。
C#
在创建新数组时,为什么在vb.net中使用'jobs.Count - 1'而不是'jobs.Count'呢?
string[] testString = new string[jobs.Count];
等价的VB.Net代码
Dim testString() As String = New String(jobs.Count - 1) {}
在创建新数组时,为什么在vb.net中使用'jobs.Count - 1'而不是'jobs.Count'呢?