ArrayExtensions.RemoveAt<T>

Extension Method in ArrayExtensions

Declaration

public static T[] RemoveAt<T>(this T[] array, int index)

Description

Removes the element at the specified index from the array.

Type Parameters

TThe type of the array.

Parameters

arrayThe array to remove the element from.
indexThe index of the element to remove.

Returns

T[]A new array with the element removed.