Get<>(dict, key, defaultVal) Get<>(dict, key, defaultVal) Get<>(dict, key1, key2, defaultVal) IndexOfSubarray<>(sourceArray, findWhat, startIndex, sourceLength, comparer) Insert<>(array, startIndex, values) Insert<>(array, startIndex, value) Remove<>(array, startIndex, length) SubarrayEquals<>(sourceArray, sourceStartIndex, otherArray, otherStartIndex, length, comparer)
Legend Class Struct Enum Interface Delegate | Constructor Method Property Event Field |
| Extension method: T[] Replace<T>(this T[], int, T)Declarationpublic 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| T | This type parameter is not documented. |
Parameters| this T[] | array |
The array from which to create a new array with one element replaced. | | int | index |
The index at which to replace one element. | | T | element |
The new element to replace the old element with. |
|