Table of Contents

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

array T[]

The array to be filled.

value T

The value to assign to each array element.

Type Parameters

T

The 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

array T[]

The System.Array to be filled.

value T

The new value for the elements in the specified range.

startIndex int

A 32-bit integer that represents the index in the System.Array at which filling begins.

count int

The number of elements to copy.

Type Parameters

T

The type of the elements of the array.