waaa wbbb

waaa wbbb

  • 2.1k
  • 16
  • 590

Serialization- list in a jason format

Mar 18 2020 5:22 PM
I tring to write the code to this exercise, but i have no idea how to do it. Please help me. Tips are very welcomed. So in the console C # application, create a Man class that has 2 properties, a string type and an int type. From the console, read the name and age pair at the input. Create a new instance of Man for each pair and add it to the List list. The input ends with the user typing the file name instead of the human name and entering -1 as the age. Serialize the inserted List in json format into the specified file. PS Thanks for solving it TT

Answers (4)