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