public void TestExtractInformationWithSerialization() { WeatherInformation lWeatherInformation = new WeatherInformation(lWebAddress); lWeatherInformation.ExtractInformationWithSerialization(); if (File.Exists(FileName)) { Stream TestFileStream = File.OpenRead(FileName); SoapFormatter deserializer = new SoapFormatter(); lWeatherInformation.WeatherData = (WeatherData)deserializer.Deserialize(TestFileStream); TestFileStream.Close(); } //lWeatherInformation.WeatherData.PropertyChanged += this.TemperaturePropertyChanged; lWeatherInformation.ExtractInfomationDownloadString(); lWebData = lWeatherInformation.WebData; Stream TestFileStreamPersist = File.Create(FileName); SoapFormatter serializer = new SoapFormatter(); serializer.Serialize(TestFileStreamPersist, lWeatherInformation.WeatherData); TestFileStreamPersist.Close(); }