Method Fill
- Namespace
- Zyl.VectorTraits
- Assembly
- VectorTraits.dll
Fill<T>(T[], T)
Assigns the given value of type T to each element of the specified array.
public static void Fill<T>(T[] array, T value)
Parameters
arrayT[]The array to be filled.
valueTThe value to assign to each array element.
Type Parameters
TThe type of the elements in the array.
Fill<T>(T[], T, int, int)
Assigns the given value of type T to the elements of the specified array which are within the range of startIndex (inclusive) and the next count number of indices.
public static void Fill<T>(T[] array, T value, int startIndex, int count)
Parameters
arrayT[]The System.Array to be filled.
valueTThe new value for the elements in the specified range.
startIndexintA 32-bit integer that represents the index in the System.Array at which filling begins.
countintThe number of elements to copy.
Type Parameters
TThe type of the elements of the array.