Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
誰かがこのコードを詳細に説明できますか?基本的にはどのように機能しますか?
Int32[] numbers = a.Split(',').Select(s => Int32.Parse(s)).ToArray();
コンマで区切られた整数で構成される文字列を受け取り、この文字列を整数の配列に変換します。
"1,2,3,4,5" -> {1, 2, 3, 4, 5}
「a」に含まれる要素を32ビットの整数に変換した結果で、32ビットの数値の配列を埋めるように見えます。
例として: "1,2,3" は次のような配列になります: [1,2,3]