Public Class TypeCustomCollectionInherits CollectionBaseDefault Public Property Item(ByVal index As Integer) As TypeGetReturn CType(List(index), Type)End GetSet(ByVal value As Type)List(index) = valueEnd SetEnd PropertyPublic Function Add(ByVal Value As Type) As IntegerReturn List.Add(Value)End FunctionPublic Sub Remove(ByVal Value As Type)If (List.Contains(Value)) ThenList.Remove(Value)End IfEnd SubEnd Class