I'm using Configuration Section Designer (CSD) to manage my .NET app.config file structure, and so far I'm lovin' it.
Problem is, I need a collection of items that doesn't lend itself to having a key. This is a list of permissions having a type (User|Group} and a name. There can be several items of the same type and several items of the same name.
It makes sense not to be able to do this using a collection of type BasicMap
; but what about AddRemoveClearMap
collections? (Ok, the 'map' in AddRemoveClearMap
doesn't help, I need list semantics).
This is what CSD says when I try to configure it like this:
The Item Type of this collection does not have a key property.
Any pointers are welcome.
PS. This answer suggests I add a bogus (unique) GUID property to the objects in the collection and use that as the key. I'll try to see if I can bend CSD to allow that.