INI Files, Properties etc..

  • Thread starter Thread starter SPG
  • Start date Start date
S

SPG

Hi,

I am new to C#, after recently converting from JAVA.
I am looking for a util or the proper way to store app settings for
configuration, such a s DB connection strings etc.
In JAVA there is a Properties object that manages all the load/save
functionality for us, giving access to a Map of name value pairs.

Is there such a thing in C#

Steve
 
Steve,

You can use System.Configuration.ConfigurationSettings.AppSettings to
retrieve properties that are defined in the applications configuration
(<assemblyName>.config). As far as I know, there is no way to modify
those settings and write them back to the same file.

Louis
 
Back
Top