Logo

Programming-Idioms

History of Idiom 165 > diff from v53 to v54

Edit summary for version 54 by EvilGenius:
New VB implementation by user [EvilGenius]

Version 53

2019-09-27, 22:57:54

Version 54

2019-09-27, 23:03:54

Idiom #165 Last element of list

Assign to variable x the last element of list items.

Idiom #165 Last element of list

Assign to variable x the last element of list items.

Code
Dim ItemList As New List(Of String)(New String() {"one", "two", "three"})
Console.WriteLine(ItemList.Last)