Answers for "JsonFileWrapper"

0

JsonFileWrapper

using MarcusMedinaPro.JsonFileWrapper;
// preparing the object
var file = new JsonFile<List<Person>>("Friends")
file.Load();
var People = file.Data;

// Now you can use your list as you want
People.Add(new Person { Name = "Adam", LastName = "West" });
People.Add(new Person { Name = "Bob", LastName = "Hoskins" });
People.Add(new Person { Name = "James", LastName = "Woods" });

// Save the list
file.Save();
Posted by: Guest on January-14-2022

Code answers related to "BASIC"

Browse Popular Code Answers by Language