How to add comments in Config file?
C#
2
Posts
2
Posters
0
Views
1
Watching
-
Hello, i use ConfigurationManager and i don't find how to add and breaklines in my config file between the
config.AppSettings.Settings.Add
Is it possible?Cptkli wrote:
i use ConfigurationManager and i don't find how to add and breaklines in my config file between the config.AppSettings.Settings.Add Is it possible?
Not using Settings.Add, no it's not. Comments aren't a setting are they? You could get away with doing it using the various methods exposed by the XmlDocument class though. I'd give you a link to the MSDN docs on XmlDocument, but our firewall sucks and is having a hard time with HTML compression.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007