booby
booby copied to clipboard
A keyed collection, to deserialize dictionaries of model objects with arbitrary keys
Hi there. I'm working on modeling a new format which has a field that contains a dictionary of model objects. I think what I'm looking for would be something like a KeyedCollection
or a Mapping
.
The keys of the dictionary depend on the parent object's type, and aren't known in advance, so I can't just use a model.
Am I right that this isn't really possible now?