Inserts optional parameters into an array.

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

Syntax

C#
public static Array InsertElements(
	Type elementType,
	Array a,
	int a1Index,
	params Object[] elems
)

Parameters

elementType
Type: System..::.Type
A type.
a
Type: System..::.Array
An array.
a1Index
Type: System..::.Int32
The index at which inserting starts.
elems
Type: array< System..::.Object >[]()[]
Inserted elements.

Return Value

A new array which is the result after inserting optional parameters the array elems into the array a.

Exceptions

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

See Also