Method Fill
Fill<T>(T[], T)
Sets all elements in the specified array to the specified value.
public static void Fill<T>(this T[] array, T value)
Parameters
arrayT[]The array whose elements will be set. Cannot be null.
valueTThe value to assign to each element of the array.
Type Parameters
TThe type of the elements in the array.
Exceptions
- ArgumentNullException
Thrown if
arrayis null.