Dinesh M Dinesh M -5 years ago 117
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

Answer Source

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""")
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download