public static bool TryInsertRange<T>(
this IEnumerable<T> target,
int index,
IEnumerable<T> collection,
bool checkReadOnlyAndBounds = true,
bool throwError = true
)
<ExtensionAttribute>
Public Shared Function TryInsertRange(Of T) (
target As IEnumerable(Of T),
index As Integer,
collection As IEnumerable(Of T),
Optional checkReadOnlyAndBounds As Boolean = true,
Optional throwError As Boolean = true
) As Boolean
public:
[ExtensionAttribute]
generic<typename T>
static bool TryInsertRange(
IEnumerable<T>^ target,
int index,
IEnumerable<T>^ collection,
bool checkReadOnlyAndBounds = true,
bool throwError = true
)
[<ExtensionAttribute>]
static member TryInsertRange :
target : IEnumerable<'T> *
index : int *
collection : IEnumerable<'T> *
?checkReadOnlyAndBounds : bool *
?throwError : bool
(* Defaults:
let _checkReadOnlyAndBounds = defaultArg checkReadOnlyAndBounds true
let _throwError = defaultArg throwError true
*)
-> bool
The specified collection can be inserted in the target collection if that is either an IListT or IList implementation.
If target is neither a ListT nor an ISupportsRangeCollectionT implementation, then the elements of collection will only be inserted one by one.