I want to take one object and using reflection, map the class properties to a KeyValuePair of string, string. But it is not that simple, because the class has some subclasses, and the subclass could have a subclass too..
My idea is end with a List of KeyValuePair that map the object with the subclasses.
Something like this: List{ KeyValuePair -> (ObjectThing.FirstPropName, "4"), KeyValuePair -> (ObjectThing.SecondPropName, "lol"), KeyValuePair -> (ObjectThing.FirstPropName.FirstSubPropertyName, "3"), KeyValuePair -> (ObjectThing.FirstPropName.SecondSubPropName, "10") }
Aucun commentaire:
Enregistrer un commentaire