Skip to content

Instantly share code, notes, and snippets.

@mizutanikirin
Last active August 29, 2015 14:05
Show Gist options
  • Save mizutanikirin/a4d9c91a6d9660d0d8c3 to your computer and use it in GitHub Desktop.
Save mizutanikirin/a4d9c91a6d9660d0d8c3 to your computer and use it in GitHub Desktop.
C#配列
// 配列宣言
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