以下のコードを考えると、私が持っている変数にDictionary(Of String, ??)
基づいての新しいインスタンスを作成しようとしています。目的のタイプのインスタンスを作成するために使用できるようにするにItemType
はどうすればよいですか?DictType
Activator
Dim ItemType As Type ' Data type of dictionary value
Dim DictType As Type = ???? ' Dictionary(of String, ItemType)
Dim NewDict = Activator.CreateInstance(DictType)