vb.net -- Using arraylist as key in dictionary
Posted
by Zahid
on Stack Overflow
See other posts from Stack Overflow
or by Zahid
Published on 2010-05-12T08:18:39Z
Indexed on
2010/05/12
8:24 UTC
Read the original article
Hit count: 300
vb.net
Dim dct As New Dictionary(Of ArrayList, ArrayList)
' Populate Dictionary dct.Add(New ArrayList({"Dot", "0"}), New ArrayList({20, 30, 40,> 50})) dct.Add(New ArrayList({"Dot", "1"}), New ArrayList({120, 130, 140,> 150}))
' Search in dictionary Dim al As New ArrayList({"Dot", "2"}) If dct.ContainsKey(al) Then *' does not work*
MessageBox.Show("Found: " & al(0).ToString) End If
© Stack Overflow or respective owner