Is it possible to do as the subject suggests?
Here's what I'm trying to do:
I'm using an XML file to keep track of connection info for a client program. As the user saves connection data, I want to be able to save each connection to the same file, and later reload each connection from that file.
My Connection class is very simple, a connection object only has 3 properties, no methods except the get/set blocks.
Name
Description
IPEndPoint (using the ToString() Method)
If its possible I expect the XML file to look similar to this:
[tt]
<Connection>
<Name>
LocalHost
</Name>
<Description>
The localhost server.
</Description>
<IPEndPoint>
127.0.0.1:13000
</IPEndPoint>
</Connection>
<Connection>
<Name>
OtherHost
</Name>
<Description>
The other local server.
</Description>
<IPEndPoint>
127.0.0.1:11000
</IPEndPoint>
</Connection>
[/tt]
Here's what I'm trying to do:
I'm using an XML file to keep track of connection info for a client program. As the user saves connection data, I want to be able to save each connection to the same file, and later reload each connection from that file.
My Connection class is very simple, a connection object only has 3 properties, no methods except the get/set blocks.
Name
Description
IPEndPoint (using the ToString() Method)
If its possible I expect the XML file to look similar to this:
[tt]
<Connection>
<Name>
LocalHost
</Name>
<Description>
The localhost server.
</Description>
<IPEndPoint>
127.0.0.1:13000
</IPEndPoint>
</Connection>
<Connection>
<Name>
OtherHost
</Name>
<Description>
The other local server.
</Description>
<IPEndPoint>
127.0.0.1:11000
</IPEndPoint>
</Connection>
[/tt]