Esempio n. 1
0
 public static void LoadInstance(string fileName)
 {
     using (var st = File.OpenRead(fileName))
         Instance = (BinarySerializer) new BinaryFormatter().Deserialize(st);
 }
Esempio n. 2
0
 public static void CreateInstance()
 {
     Instance = new BinarySerializer();
 }