Is it true to say that every type of grouping class (collection, array, hashtable etc.) is zero based in VB.net, except for the collection class which is 1 based? I note in particular that the IList contained in the List property of CollectionBase is 0 based. I find this a bit annoying. If I have a collection and then decide I need to make it strongly typed by having a class inheriting from CollectionBase I either have to change all item references in my code or have the following rather awkward code in the new class:
Any thoughts?
Visual Basic:
Public Function item(ByVal i As Integer) As String
Return MyBase.List.Item(i + 1)
End Function
Any thoughts?