I am using a Dictionary
in VB.NET Windows application.
I have added several values in a Dictionary
and I want to edit some values using their key.
Example: Below we have a DATA table and I want to update the value of the key - "DDD" to 1
AAA - "0" BBB - "0" CCC - "0' DDD - "0"
How can this be done?
For Each kvp As KeyValuePair(Of String, String) In Dictionary1
If i = value And kvp.Value <> "1" Then
NewFlat = kvp.Key.ToString
---------------------------------------------
I want to update set the Value 1 of respective key.
What should I write here ?
---------------------------------------------
IsAdded = True
Exit For
End If
i = i + 1
Next kvp