Dinesh M Dinesh M - 10 months ago 42
Vb.net Question

deleting the last key in a dictionary

One of the keys in my dictionary is like this == > O "Models"

I want to delete this key. I know that this will be the last key always

I tried:

file1dictionary.Remove(O "Models")
file1dictionary.Remove("O "Models"")

Both have syntax errors


Double quotes in VB.Net strings are self-escaped, meaning you use two of them within the string literal to represent a quote contained in the string object, like this:

file1dictionary.Remove("O ""Models""")