mardi 16 mars 2021

how to do reflection in Nested object vb.net

I have an object that I accept and this object is a nested object which means it has properties that are also objects and so on. I need a way to go through this object and its sons and their sons etc and for each of the properties check if its name is in the array I have with the names of some of the properties of the nested object and if so then I need the value of the property from the object. Is there a way to do that? I tried through reflection but could not move forward. Some of the properties of the object I do not need so I check for on a property whether it is in my array





Aucun commentaire:

Enregistrer un commentaire