Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Extension method: T[] Replace<T>(this T[], int, T)

Declaration

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

Summary

Returns a new array in which a single element has been replaced.

Generic type parameters

TThis type parameter is not documented.

Parameters

this T[]array The array from which to create a new array with one element replaced.
intindex The index at which to replace one element.
Telement The new element to replace the old element with.