App.config hexadecimal values and quotes
Posted on 2006-05-26
Is it possible and how to place hexadecimal numbers in a string in the config file and or strings with a " in it?
<add key="Colors" value="&H0, &HA0, &HA000, &HA0A0, &HA000A0, &HA0A000, &HA0A0A0"/>
<add key="SomeString" value="Some string with " and maybe also ' and other weird characters"/>
The standard VB or XML methods don't work I noticed.
&#xxx does not work for special characters.
Adding a \ or another & in front also doesn't help.
I get "expected ;" as soon as I use & in this file.
Visual Studio 2005 with .NET 2.0