Utility.NextItem<T> Method

Return the cyclic next item in a list.
Public Shared Function NextItem(Of  _ 
T)( _ 
ByVal list As IList(Of T), _ 
ByVal itemIndex As Integer
) As T
This language is not supported or no code example is available.
public static T NextItem<T>( 
IList<T> list
int itemIndex 
)
This language is not supported or no code example is available.

Type Parameters

T

The item type

Parameters

list
IList<T>

The list

itemIndex
int

The item index

Return Value

T

The next item or the first item of the list in the case that itemIndex is equal to the list length less one.

.NET Framework

Supported in: 4.8

In this article

Definition