コード例 #1
0
        public void DeserializeSimConfig()
        {
            FileStream myFileStream = new FileStream(FileName, FileMode.Open);

            SimConfig = (SimConfiguration)serializer.Deserialize(myFileStream);
            myFileStream.Close();
        }
コード例 #2
0
        public SimConfigurator(string filename)
        {
            if (filename == null)
            {
                throw new ArgumentNullException("filename");
            }

            this.FileName  = filename;
            this.SimConfig = new SimConfiguration();
        }
コード例 #3
0
 public void DeserializeSimConfig()
 {
     FileStream myFileStream = new FileStream(FileName, FileMode.Open);
     SimConfig = (SimConfiguration)serializer.Deserialize(myFileStream);
     myFileStream.Close();
 }