Hello ;)
I got a problem ...
I have a XML-Config File for my C#-Programm and i want to store useable ports in it. So it looks like this:
<configuration>
<!-- Allgemeine Einstellungen -->
<Properties>
<Error_Config
Error_Port = "5000"
Error_Example = "Example"
/>
<Class1>
<Config
Config_Data = "10"
Config_Port = "1025"
/>
</Class1>
</Properties>
<appSettings>
</appSettings>
</configuration>
// Just an example ... //
I could use the AppSettings Section, but i cant "group" my keys in this Section = /
So i have to make my own Section called Properties.
There is this class AppSettingsReader. But afaik it can only read out of the AppSection. I googled a while and everything i found was a post on msdn-forum that uses Hashtables to get this data ... Thats a bit complicated ...
Is there a simplier way to read this data ? AppSettingsReader is very simple to use ... Is there a class similar to ASR that can read out of all sections ?
I know there is Configuration.ConfigurationManager, but it just works with Hashtables (says MSDN)
Anyone can help ?
greets Shecuna