I am having one property called Students which is of type List
.
In reflection i can get the value of Students Property.
Now the p
Others have suggested casting to List but I will assume that this won't work for you... if you had access to the Student class, you wouldn't be using reflection to begin with. So instead, just cast to IEnumerable and then inside your loop, you'll have to use reflection again to access whatever properties you want off of each item in the collection.
var collection = (IEnumerable)studentPro.GetValue(studentObj,null)