Last active
August 29, 2015 14:05
-
-
Save mizutanikirin/a4d9c91a6d9660d0d8c3 to your computer and use it in GitHub Desktop.
C#配列
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 配列宣言 | |
string[] array; | |
array = new string[3] {"テスト1", "テスト2", "テスト3"}; | |
// 配列のコピー(arrayAにarrayBをコピー) | |
arrayB.CopyTo(arrayA, 0); | |
// 配列の長さ取得 | |
int length = array.GetLength(0); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment