Note
If target is neither a ListT or an ISupportsRangeListT implementation,
then after overwriting the elements of the overlapping range, the difference will be removed or inserted one by one.
public static void ReplaceRange<T>(
this IList<T> target,
int index,
int count,
IEnumerable<T> collection
)
<ExtensionAttribute>
Public Shared Sub ReplaceRange(Of T) (
target As IList(Of T),
index As Integer,
count As Integer,
collection As IEnumerable(Of T)
)
public:
[ExtensionAttribute]
generic<typename T>
static void ReplaceRange(
IList<T>^ target,
int index,
int count,
IEnumerable<T>^ collection
)
[<ExtensionAttribute>]
static member ReplaceRange :
target : IList<'T> *
index : int *
count : int *
collection : IEnumerable<'T> -> unit
ArgumentNullException | target or collection is . |
ArgumentOutOfRangeException | index is not a valid index in the CircularListT. |