Inserts optional parameters into an array.
Namespace:
SGP.XUtilityAssembly: 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
Exception | Condition |
---|---|
System..::.ArgumentNullException | elementType is nullNothingnullptra null reference (Nothing in Visual Basic). |