Inserts the content of the first array into the second one.

Namespace:  SGP.XUtility
Assembly:  SGP.XUtility (in SGP.XUtility.dll)
Version: 1.2.3019.18718

Syntax

C#
public static Array Insert(
	Type elementType,
	Array a1,
	int a1Index,
	Array a2
)

Parameters

elementType
Type: System..::.Type
A type.
a1
Type: System..::.Array
A first array.
a1Index
Type: System..::.Int32
The index at which inserting starts.
a2
Type: System..::.Array
A second (inserted) array.

Return Value

A new array which is the result after inserting the array a2 into the array a1.

Exceptions

ExceptionCondition
System..::.ArgumentNullException elementType is nullNothingnullptra null reference (Nothing in Visual Basic).

See Also