This file contains hidden or 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 result1 = string.Concat(Enumerable.Repeat("oxx", 10)); | |
| // 2つの配列から合致する値のみを抽出する | |
| int[] array1 = { 1, 2, 3, 4, 5 }; | |
| int[] array2 = { 3, 4, 5, 6, 7 }; | |
| int[] result = array1.Intersect(array2).ToArray(); | |
| // 2つの数列の組み合わせを生成する | |
| int[] array1 = { 1, 2, 3 }; |