Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ImmutableList<T>.InsertRange Method

Inserts the elements of a collection into the immutable list at the specified index.

Namespace:  System.Collections.Immutable
Assembly:  System.Collections.Immutable (in System.Collections.Immutable.dll)

public ImmutableList<T> InsertRange(
	int index,
	IEnumerable<T> items
)

Parameters

index
Type: System.Int32

The zero-based index at which to insert the elements.

items
Type: System.Collections.Generic.IEnumerable<T>

The collection whose elements should be inserted.

Return Value

Type: System.Collections.Immutable.ImmutableList<T>
The new immutable list after the elements are inserted.
Show:
© 2015 Microsoft