I have a winforms (C#) application in which will have some settings I want to modify after its built.
I am thinking of a simple XML file with properties like:
<Settings>
<Username>MyUsername</Username>
<RealName>MyRealName</RealName>
&开发者_JAVA百科lt;/Settings>
These values should I be able to change after its released as a exe file. Maybe in a XML file stored next to it. Is this possible?
You probably want to look at app.config
- this is precisely for this purpose.
See the MSDN reference here: http://msdn.microsoft.com/en-us/library/ms184658(v=vs.80).aspx
In particular check the <appSettings>
section.
精彩评论