示例#1
0
 public Library()
 {
     Books = new List <Book>();
     try
     {
         BooksToXML.Deserialize(this);
         Books[0].setCounter(Books.Last <Book>().Id);
     }catch (Exception)
     {
     }
 }
示例#2
0
 public bool Save()
 {
     BooksToXML.Serialize(this);
     return(true);
 }