Fill<T> Method (ArrayHelper)
In This Topic
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.
Syntax
'Declaration
Public Shared Sub Fill(Of )( _
ByVal () As , _
ByVal As , _
ByVal As Integer, _
ByVal As Integer _
)
'Usage
Dim array() As
Dim value As
Dim startIndex As Integer
Dim count As Integer
ArrayHelper.Fill(Of T)(array, value, startIndex, count)
public static void Fill<>(
[] ,
,
int ,
int
)
Parameters
- array
- The array to be filled.
- value
- The new value for the elements in the specified range.
- startIndex
- A 32-bit integer that represents the index in the System.Array at which filling begins.
- count
- The number of elements to copy.
Type Parameters
- T
- The type of the elements of the array.
See Also