Imports System.Collections.Generic
Dim MySortedList As New SortedList(Of Int16, String)
MySortedList.Add(1, "Item 1")
MySortedList.Add(2, "Item 2")
MySortedList.Add(3, "Item 3")
MySortedList.Add(4, "Item 4")
Dim MyMaxKey = MySortedList.Last().Key
Console.WriteLine(MyMaxKey)