public static Simulation LoadFrom(Stream stream)
 {
     using (TextReader reader = new StreamReader(stream, Encoding.UTF8NoIdentifier))
     {
         return(SimulationSerializer.LoadFrom(reader));
     }
 }
 public static void Save(Stream stream, Simulation simulation)
 {
     using (TextWriter writer = new StreamWriter(stream, Encoding.UTF8NoIdentifier))
     {
         SimulationSerializer.Save(writer, simulation);
     }
 }
 public static Simulation LoadFrom(string fileName)
 {
     using (Stream stream = File.OpenRead(fileName))
     {
         return(SimulationSerializer.LoadFrom(stream));
     }
 }