【 解 説 】
配列をコピーするにはArray.Copyメソッドを使用します。
【 例 文 】
1 2 3 4 5 6 7 |
string[] authors = new string[3]; authors[0] = "Kent Beck"; authors[1] = "Martin Fowler"; authors[2] = "Tom Demarco" string[] newAuthors = new string[authors.Length + 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の米国及びその他の国における登録商標または商標です。