C#/VB/F# compiler playground.
listとlist2を連結するには、AddRange(他のリスト)で行う。 List<string> list = new List<string>(); list.Add("abc"); List<string> list2 = new List<string>(); list2.Add("def"); list2.AddRange(list); foreach(string str in list2) { Debug.Log(str); }
public: void AddRange(System::Collections::Generic::IEnumerable<T> ^ collection); public void AddRange (System.Collections.Generic.IEnumerable<T> collection); member this.AddRange : seq<'T> -> unit Public Sub AddRange (collection As IEnumerable(Of T)) パラメーター 例 次の例では、範囲に対して AddRange 動作する クラスの メソッドとその他のさまざまなメソッドを List<T> 示します。 文字列の配列が作成され、コンストラクターに渡され、配列の要素がリストに設定されます。 メソッドが AddRange 呼び出され、リストが引数として
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く