Last post Jan 27, 2009 04:31 AM by firstname.lastname@example.org
Jan 14, 2008 06:44 AMemail@example.com|LINK
Dim AttributeValuePairs() As Dictionary(Of String, String) = New Dictionary(Of String, String)
byt this i mean AttributeValuePairs is a Array of dictionaries
the above syntax is wrong.
Jan 14, 2008 07:12 AM|farazsk11|LINK
Thanks and best regards,
Jan 14, 2008 07:15 AM|farazsk11|LINK
Or you can try this as well
Jan 14, 2008 10:03 AM|David Anton|LINK
You need the array specifier (empty parentheses) in the initializer part, but since VB confuses these with the parentheses on a constructor call, you need the curly brackets. VB then knows that it must be dealing with an array. This is a
weakness of the VB compiler - you shouldn't have to specify the curly brackets in obvious cases like this where the compiler should be able to determine that the 'New' is initializing the array and not calling some other constructor.
Jan 27, 2009 04:31 AMfirstname.lastname@example.org|LINK
Dim x As New List(Of Dictionary(Of String, String))