2019-05-25 配列の初期化 C# forを使わない初期化方法 int nrange = Enumerable.Repeat(1, n + 1).ToArray(); int narray = (new int[n]).Select(e => 1).ToArray();