我有一个现有的String
and HashSet(Of String)
,但是下面的代码
Dim myDict As New Dictionary(Of String, HashSet(Of String))(myString, myHashSet)
产生这个 Intellisense 错误:Argument matching parameter 'comparer' narrows from 'System.Collections.Generic.HashSet(Of String)' to 'System.Collections.Generic.IEqualityComparer(Of String)'
创建这本词典的正确方法是什么?