ArrayExtensions.Append<T>

Extension Method in ArrayExtensions

Declaration

public static T[] Append<T>(this T[] array, T element)

Description

Appends an element to the end of the array.

Type Parameters

TThe type of the array.

Parameters

arrayThe array to add the element to.
elementThe element to add.

Returns

T[]A new array with the added element.