Utility.PrevItem<T> Method
Return the cyclic previous item in a list.
Public Shared Function PrevItem(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 PrevItem<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 previous item or the last item of the list in the case that itemIndex is equal to zero.
.NET Framework
Supported in: 4.8