Custom Collection (Of T)
问题 I'm trying to create a custom version of Collection that uses a type instead of Object . I have a working class (see below), however, I would like to change it to be (Of T) instead of having to create a new class for each type that I would like to use. Is it possible to implement this? Imports System.Collections.Generic Public Class CustomCollection Implements IDictionary(Of String, CustomClass) Private _dct As New Dictionary(Of String, CustomClass) #Region " IDictionary<string,object>