Class ArrayExtensions
Extension methods for array manipulation.
Namespace: NWH.Common.Utility
Assembly: NWH.Common.dll
Syntax
public static class ArrayExtensions
Methods
| Edit this page View SourceFill<T>(T[], params T[])
Efficiently fills an array by repeating a pattern of values. Uses doubling strategy for performance.
Declaration
public static void Fill<T>(this T[] destinationArray, params T[] value)
Parameters
| Type | Name | Description |
|---|---|---|
| T[] | destinationArray | Array to fill. |
| T[] | value | Pattern of values to repeat throughout the array. |
Type Parameters
| Name | Description |
|---|---|
| T | Type of array elements. |