What's a clean, canonical way to save a series of identically-structured simple config tuples in .NET Application Settings?
Say my program's got (user-scope) settings like "server name", "address", "port". I'd just add those three to the Application Settings as two strings and an int.
But what if my program's config needs to deal with multiple such servers, where the user can add and remove any number of them? I would want the settings to hold an array of triplets, each triplet made of two strings and an int, and the Application Settings don't quite seem to support that.
It's a relatively lightweight structure made of basic types, but so far the cleanest way I've found to do this is to create a new class(!) just to hold the array of triplets, fit the class with custom serialization/deserialization code, and then set it as the type of a single "setting".
I could do this, but considering how hands-off most of the Application Settings is, this really smells like something that's probably doable in a more straightforward way.
So is there such a way?
(Yes, I've seen the "int[] array in application Settings" question, and the useful answers from there are not that useful in this situation.)
ETA: The point of the question isn't in server names or port numbers, it's in an array of identically-structured tuples of simple data, where each individual datum would be trivially saved.