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.

8th Jan 2018, 2:51 AM
Attitude
Attitude - avatar
1 Réponse
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.
1st Jul 2018, 4:24 PM
Michal Grznár