I'm creating XML file which will hold couple of values regarding TCP Connection (IP (string), PORT (int), RetryCount (int), StartAutomatically (bool) and so on. There will be a number of TcpConnections defined like that (unknown to me).
What i thought is to create some kind of object called TcpConnectionHolder which i could create dynamically (one per tcp connection) that would hold all related fields so i could easily load all tcp connections from xml to that dynamic object and that i could later on reuse those fields, or update them from code when necessary.
My questions are:
- How do I create such object with multiple fields (example with more then one Value -> Data would be nice)
- How do I assign multiple values to one connection - (preferably both setting all values at once and one by one would be nice).
- How do I read it?