ImmutableList<T>.Builder.InsertRange(Int32, IEnumerable<T>) メソッド
定義
コレクションの要素を、変更できないリスト内の指定したインデックス位置に挿入します。Inserts the elements of a collection into the immutable list at the specified index.
public:
void InsertRange(int index, System::Collections::Generic::IEnumerable<T> ^ items);
public void InsertRange (int index, System.Collections.Generic.IEnumerable<T> items);
member this.InsertRange : int * seq<'T> -> unit
Public Sub InsertRange (index As Integer, items As IEnumerable(Of T))
パラメーター
- index
- Int32
新しい要素が挿入される位置の 0 から始まるインデックス。The zero-based index at which the new elements should be inserted.
- items
- IEnumerable<T>
変更できないリストに挿入する要素を持つコレクション。The collection whose elements should be inserted into the immutable list. コレクション自体を null
にすることはできませんが、T
型が参照型の場合、コレクションに格納する要素は null であってもかまいません。The collection itself cannot be null
, but it can contain elements that are null, if type T
is a reference type.