【 解 説 】
配列をコピーするにはArray.Copyメソッドを使用します。
【 例 文 】
1 2 3 4 5 6 7 |
Dim authors As String() = New String(2) {} authors(0) = "Kent Beck" authors(1) = "Martin Fowler" authors(2) = "Tom Demarco" Dim newAuthors As String() = New String(authors.Length + 1 - 1) {} Array.Copy(authors, newAuthors, authors.Length) |
■お薦め参考関連資料
Microsoft、Visual Studio、Visual Basic、Visual C#、Windows Vista、Windows Server、SQL Server、Visual C++、Visual Web Developerは、米国 Microsoft Corporationの米国及びその他の国における登録商標または商標です。