Method Fill
Fill<T>(T[], T)
Fills every element of an array with the same item.
public static void Fill<T>(this T[] array, T value)
Parameters
arrayT[]Array to overwrite.
valueTValue assigned to every element.
Type Parameters
TElement type stored in the array.