I've an object like this:
public class Parents
{
public List<Parent> {get; set;}
}
public class Parent
{
public string name {get; set;}
public int age {get; set;}
public List<Child> {get; set;}
}
public class Child
{
public string name {get; set;}
public int age {get; set;}
}
after filling "Parents" with multiple "Parent" and each of them with multiple "Child" from an xml, i'd like to make them persistent (in memory only), so I might call it from every part of my program without the need of recreating them or sending them from one part of my code to another. Also i'd like to do the same, with a DataSet.
I'm aware of that "persistent" might be the wrong word in this context, but I have no idea how else to call it, so please let me know if there is a better term.