0
Show list of object of a model
Hello, I would like to show a list of object of a model. can you help me please? Here is my code : https://code.sololearn.com/ck0D04THWZwr/#cs Thank you.
1 Answer
0
Hello,
do you think something like this?
Personne per = new Personne();
foreach (var item in per.GetType().GetProperties())
Console.WriteLine(item.Name);
It gets and print all properties name of object.