Public Shared ReadOnly Property uniqueAccounts() As Dictionary(Of String, ExchangesClass)
Private Shared Sub setUniqueAccounts()
Dim lines = _accounts11
Dim dictAccount = New Dictionary(Of String, ExchangesClass)
For Each line In lines
Dim exchange = line._Exchange
If Not dictAccount.ContainsKey(exchange) Then
dictAccount(exchange) = line
End If
Next
_uniqueAccounts = dictAccount
End Sub
在这里,_uniqueAccounts被隐式声明
所以我输入_unique
我明白了
为什么没有显示?
变量_uniqueAccounts确实存在。使用它时我没有得到编译器警告。为什么没有显示?