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