Example #1
0
 public static Replay ImportFromFile(string file)
 {
     //return Serializer<Replay>.Load(file);
     return((Replay)BinarySerializer.Load(file));
 }
Example #2
0
 // Export and import functions
 public void ExportToFile(string file)
 {
     Directory.CreateDirectory(Path.GetDirectoryName(file));
     //Serializer<Replay>.Save(file, this);
     BinarySerializer.Save(file, this);
 }