I have this VisualStudio solution with a project inside of it. I have added several strongly typed config settings, that are found in the Settings section of the app. However, when I try to add a char setting with special character as the actual value I get error similar to:
'\n' cannot be converted to an instance of type 'char'.
See attached screenshot below.
I have tried editting the underlying App.config xml file, but setting the value there to a special character such as \n or \t, simply resets the field to an empty character.
I need the said setting to be a configurable delimiter for one of my data parsers.
Is it possible to have strongly typed setting setting that is a special character? What is the workaround for the above error message?
Used Visual Studio version: VisualStudio Professional 2015 (.NET 4.7)
Edit: The suggested duplicate question does not talk about app.settings or the limitaion imposed by Visual Studio at all. It is entirely different question
