public void DeserializeSimConfig() { FileStream myFileStream = new FileStream(FileName, FileMode.Open); SimConfig = (SimConfiguration)serializer.Deserialize(myFileStream); myFileStream.Close(); }
public SimConfigurator(string filename) { if (filename == null) { throw new ArgumentNullException("filename"); } this.FileName = filename; this.SimConfig = new SimConfiguration(); }