Пример #1
0
 internal void Load(Stream stream)
 {
     XmlSerializer serializer = new XmlSerializer(typeof(State));
     try
     {
         _state = (State)serializer.Deserialize(stream);
     }
     catch
     {
         // Failed to deserialize the stream. Using an empty state
     }
     InitializeLookupTables();
 }
Пример #2
0
 internal Persistency()
 {
     this._state = new State();
 }