mercredi 18 mai 2016

How to select record of a list using Reflection

 string className = "CustomerEntities[2]"
 PropertyInfo propertyInfo = model.GetType().GetProperty(className);

propertyInfo is always null, how do I select class at an certain index of a list i.e. 2. However if I change the class name to "CustomerEntities", It selects an entire list.





Aucun commentaire:

Enregistrer un commentaire